Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when uploading files of size 24052 (edit: any file size aligned by (n * 512 - 12) boundary) #61

Closed
colona opened this issue Jun 2, 2015 · 3 comments

Comments

@colona
Copy link

colona commented Jun 2, 2015

Hi, very basically:

dd if=/dev/urandom of=/tmp/foobar bs=1 count=24052

and then, trying to upload that file:

uploadFiles  ("/tmp/foobar")
uploading 24052 bytes
uploading file  "/tmp/foobar"
uploadFile  "foobar"  as  "foobar"
sending  24052  bytes
new object id:  3758 , sending...
10008 ms since the last poll call
uploading file  "/tmp/foobar"  failed:  "timeout reaping usb urb"
finishing queue
drop message 0003 2001, transaction 00000023, expected: 00000024
10010 ms since the last poll call
finalizing commands failed:  "timeout reaping usb urb"
finished

This happens on the HEAD and it also fails with pure ASCII files or whatever. Adding or removing a single byte from that file make the transfer work, really only the size seems to matter here, very weird…

Thanks, great work otherwise! Let me know if you need any other info.

@whoozle
Copy link
Owner

whoozle commented Jun 2, 2015

well, add 12 bytes to the file size and get perfectly 512-bytes aligned size. :)

@whoozle
Copy link
Owner

whoozle commented Jun 2, 2015

could you pull & test please? I added ZLP flag on every short transfer.

@whoozle whoozle changed the title Error when uploading files of size 24052 Error when uploading files of size 24052 (edit: any file size aligned by (n * 512 - 12) boundary) Jun 2, 2015
@colona
Copy link
Author

colona commented Jun 2, 2015

Yeah, works great without any problem now. Thanks a lot!

@whoozle whoozle closed this as completed Jun 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants