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: Large file transfer on TFTP not working

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 12 Feb 2009 11:40:21 +0100 (CET)

On Thu, 12 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.

I would claim 64MB is still a rather small file... ;-)

> At around 55MB, the log "Failed writing body (0 != 512)" is seen and the
> TFTP transfer is terminated.

Doe it always happen at this (same) point?

The error message means that fwrite() failed to write 512 bytes to disk and
instead got zero returned, which does indeed signal an error. See
lib/sendf.c:Curl_client_write() if you're interested in the specific code.

> I have increased the TFTP timeout to 3600 so that TFTP does not timeout. I
> am using Cisco TFTP server and also Tftpd32 server.

I don't think it is time-out related.

-- 
  / 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-12

These mail archives are generated by hypermail.

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

File upload with ASP.NET