cURL / Mailing Lists / curl-users / Single Mail


Re: TFTP file transfer issues

From: Daniel Stenberg <>
Date: Fri, 13 Feb 2009 10:16:39 +0100 (CET)

On Fri, 13 Feb 2009, vijay g wrote:

> I am getting the following errors when am using TFTP for file transfer. I am
> trying to read a 64MB file from the TFTP server. I am using curl 7.19.2 lib.
> At around 55MB, the log "Failed writing body (0 != 512)" is seen and the
> TFTP transfer is terminated.It always happens at the same point. I know that
> the error is in lib/sendf.c but am not sure what is causing this issue.

That is fwrite() returning a failure. I would say you need to do some
debugging in your end to figure out why it does this. I'd recommend using
strace or gdb or similar.

> I tried changing the TFTP_BLOCKSIZE from 512 to 1024. But tftp i sending out
> just a 512 byte packet and stopping.Is changing the block size from 512 to
> 1024 supported in curl .

Only if you run a libcurl off CVS or the upcoming 7.19.4 release. Earlier
libcurl versions uses nothing but 512.

List admin:
Received on 2009-02-13