Menu

#653 "curl tftp://tftpserver/[1-3] -O" not working in latest src

closed-fixed
TFTP (14)
5
2013-06-21
2007-05-23
songma
No

Hi,

For the latest snapshot of cURL, "curl-7.16.3-20070523", I found that the following scenario is not working.

~/curl-7.16.3-20070523/src>./curl -v tftp://tftpserver/[1-3] -o "my_#1"

But only one file was downloaded.

~/curl-7.16.3-20070523/src>ls my_* my_1

In the snapshot the "tftp.c" version is "1.46". I can see there are a lot of fixes made to "tftp.c" recently. Could some change break it?

cURL 7.16.1 and 7.16.2 is okay for this usage.

Best Regards,
Song Ma

Verbose log:
curl-7.16.3-20070523
[1/3]: tftp://tftpserver/1 --> my_1
* About to connect() to tftpserver port 69 (#0)
* Trying tftpserver... connected
* Connected to tftpserver (tftpserver) port 69 (#0)
* set timeouts for state 0; Total 30, retry 5 maxtry 6
* TFTP_STATE_START
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left
Speed
0 6 0 6 0 0 36 0 --:--:-- --:--:-- --:--:--
36* TFTP_STATE_START
* Connected for receive
* set timeouts for state 1; Total 3600, retry 15 maxtry 24
0 6 0 6 0 0 36 0 --:--:-- --:--:-- --:--:--
36* Connection #0 to host tftpserver left intact

[2/3]: tftp://tftpserver/2 --> my_2
* Examining connection #0 for reuse (pipeLen = 0)
* Re-using existing connection! (#0) with host tftpserver
* Connected to tftpserver (tftpserver) port 69 (#0)
* TFTP finished
0 6 0 6 0 0 10810 0 --:--:-- --:--:-- --:--:--
10810* Connection #0 to host tftpserver left intact

[3/3]: tftp://tftpserver/3 --> my_3
* Examining connection #0 for reuse (pipeLen = 0)
* Re-using existing connection! (#0) with host tftpserver
* Connected to tftpserver (tftpserver) port 69 (#0)
* TFTP finished
0 6 0 6 0 0 2772 0 --:--:-- --:--:-- --:--:--
2772* Connection #0 to host tftpserver left intact

* Closing connection #0

cURL 7.16.2:
* Trying tftpserver... connected
* Connected to tftpserver (tftpserver) port 69 (#0)
* set timeouts for state 0; Total 30, retry 5 maxtry 6
* TFTP_STATE_START
* TFTP_STATE_START
% 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:05 --:--:--
0* TFTP_STATE_START
* Connected for receive
* set timeouts for state 1; Total 3600, retry 15 maxtry 24
* Pre readwrite setting chunky header values to default
0 0 0 0 0 0 0 0 --:--:-- 0:00:05 --:--:--
0* Connection #0 to host tftpserver left intact

[2/3]: tftp://tftpserver/2 --> my_2
* Examining connection #0 for reuse (pipeLen = 0)
* Re-using existing connection! (#0) with host tftpserver
* Connected to tftpserver (tftpserver) port 69 (#0)
* TFTP finished
* Pre readwrite setting chunky header values to default
* Connection died, retrying a fresh connect
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:--
0* Closing connection #0
* Issue another request to this URL: 'tftp://tftpserver/2'
* About to connect() to tftpserver port 69 (#0)
* Trying tftpserver... connected
* Connected to tftpserver (tftpserver) port 69 (#0)
* set timeouts for state 0; Total 30, retry 5 maxtry 6
* TFTP_STATE_START
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:--
0* TFTP_STATE_START
* Connected for receive
* set timeouts for state 1; Total 3600, retry 15 maxtry 24
* Pre readwrite setting chunky header values to default
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:--
0* Connection #0 to host tftpserver left intact

[3/3]: tftp://tftpserver/3 --> my_3
* Examining connection #0 for reuse (pipeLen = 0)
* Re-using existing connection! (#0) with host tftpserver
* Connected to tftpserver (tftpserver) port 69 (#0)
* TFTP finished
* Pre readwrite setting chunky header values to default
* Connection died, retrying a fresh connect
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:--
0* Closing connection #0
* Issue another request to this URL: 'tftp://tftpserver/3'
* About to connect() to tftpserver port 69 (#0)
* Trying tftpserver... connected
* Connected to tftpserver (tftpserver) port 69 (#0)
* set timeouts for state 0; Total 30, retry 5 maxtry 6
* TFTP_STATE_START
* TFTP_STATE_START
0 0 0 0 0 0 0 0 --:--:-- 0:00:05 --:--:--
0* TFTP_STATE_START
* Connected for receive
* set timeouts for state 1; Total 3600, retry 15 maxtry 24
* Pre readwrite setting chunky header values to default
0 0 0 0 0 0 0 0 --:--:-- 0:00:05 --:--:--
0* Connection #0 to host tftpserver left intact

Discussion

  • Daniel Stenberg

    Daniel Stenberg - 2007-05-24
    • status: open --> closed-fixed
     
  • Daniel Stenberg

    Daniel Stenberg - 2007-05-24

    Logged In: YES
    user_id=1110
    Originator: NO

    Thanks for reporting, I've committed a fix to CVS just now.