cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-users Mailing List Archives

Re: TFTP file transfer issues

From: Daniel Stenberg <daniel_at_haxx.se>
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.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2009-02-13

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET