cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: TFTP get does not work with files > 40MB ?

From: Sergei Steshenko <sergstesh_at_yahoo.com>
Date: Tue, 19 May 2009 23:57:43 -0700 (PDT)

--- On Tue, 5/19/09, Eddie Mendonca (eddiem) <eddiem_at_cisco.com> wrote:

> From: Eddie Mendonca (eddiem) <eddiem_at_cisco.com>
> Subject: TFTP get does not work with files > 40MB ?
> To: curl-users_at_cool.haxx.se
> Date: Tuesday, May 19, 2009, 10:48 PM
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> Hello,
>
> I’m
> using CURL 7.16.2.  I’m aware of the old 32Mb TFTP
> file size limitation,
> but my TFTP server supports large files.  Using command
> line tftp I’m
> able to get a file over 600Mb from the same server, witout
> loosing any bytes. 
> But using curl, if the file is over 40Mb it starts loosing
> bytes.  Here you can
> see I pulled a file that was 40Mb:
>
>
>  
>
> # curl
> tftp://acsview-build1/40mbfile >
> /tmp/40mbfile
>
>  
>     %
> Total    % Received % Xferd  Average Speed  
> Time    Time     Time  Current
>
> Dload  Upload   Total  
> Spent    Left  Speed
>
>  
>       0    
> 0    0     0    0     0      0     
> 0 --:--:--  0:00:58 --:--:--     0
>
> # ll
> /tmp/40mbfile
>
> -rw-r--r--  1 root root 40001150 May 19 21:41
> /tmp/40mbfile
>
>
>  
>
> The
> TFTP-pulled file shows 40001150 bytes, but listing the file
> on the TFTP server
> shows it’s larger (40001662 bytes):
>
>
>  
>
> acsview-build1:/tftpboot> ll /tftpboot/40mbfile
>
>
> -rw-r--r--  1 eddiem eng 40001662 May 19 21:40
> /tftpboot/40mbfile
>
> acsview-build1:/tftpboot>
>
>
>  
>
> I
> notices as the files get larger, the loss gets larger.  I
> feel like I’m
> missing something obvious.  Any remedy to this?
>
>
>
>  
>
> ---
>
> Eddie
> Mendonça       Software Engineer, Cisco Systems
>
> eddiem_at_cisco.com  
> Office: 408-527-5885
>

AFAIK it's protocol limitation, and it is even smaller - 34 MBytes.

Regards,
  Sergei.

      
-------------------------------------------------------------------
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-05-20