TFTP upload problem with piped input #857

bagder opened this Issue Jun 3, 2016 · 0 comments


None yet

1 participant

bagder commented Jun 3, 2016

If the read callback doesn't fill up the entire buffer, that is considered the end of the transfer by the TFTP server. This can easily happen when uploading from stdin.

Serj Kalichev posted a patch for this problem here

@bagder bagder added the TFTP label Jun 4, 2016
@bagder bagder added a commit that closed this issue Aug 3, 2016
@pkun @bagder pkun + bagder TFTP: Fix upload problem with piped input
When input stream for curl is stdin and input stream is not a file but
generated by a script then curl can truncate data transfer to arbitrary
size since a partial packet is treated as end of transfer by TFTP.

Fixes #857
@bagder bagder closed this in edeabf7 Aug 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment