cURL / Mailing Lists / curl-users / Single Mail

curl-users

getpeername() error using tftp with curl-7.28.1

From: Priyanka Shah <priyanka_at_insiemenetworks.com>
Date: Thu, 21 Nov 2013 11:23:17 -0800

Hi,
I am trying to transfer a file using curl binary to a tftp server. It works
with curl-7.19.7, but not with curl-7.28.1. I see the following error:

* connected
* getpeername() failed with errno 107: Transport endpoint is not connected

Here are the details:
Error case (curl 7.19.7 and libcurl 7.28.1) (curl 7.28.1 and libcurl 7.28.1)
--------------
# curl --version
*curl 7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.28.1 OpenSSL/1.0.1e
zlib/1.2.3 libidn/1.18 libssh2/1.2.2*
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3
pop3s rtsp scp sftp smtp smtps telnet tftp
Features: IDN IPv6 Largefile NTLM SSL libz

# curl --upload-file "test.out" "tftp://172.21.158.8/test.out" -v
* About to connect() to 172.21.158.8 port 69 (#0)
* Trying 172.21.158.8...
* connected
* getpeername() failed with errno 107: Transport endpoint is not connected
* Connected to 172.21.158.8 (172.21.158.8) port 69 (#0)
* set timeouts for state 0; Total 300, retry 6 maxtry 50
  % Total % Received % Xferd Average Speed Time Time Time
 Current
                                 Dload Upload Total Spent Left
 Speed
  0 18 0 0 0 0 0 0 --:--:-- 0:00:06 --:--:--
  0^C

Success case (curl 7.19.7 and libcurl 7.19.7)
-----------------
$ curl --version
curl 7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7
NSS/3.13.1.0zlib/1.2.3 libidn/1.18 libssh2/1.2.2
Protocols: tftp ftp telnet dict ldap ldaps http file https ftps scp sftp
Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz

$ curl --upload-file "out.out" "tftp://172.21.158.8/out.out" -v
* About to connect() to 172.21.158.8 port 69 (#0)
* Trying 172.21.158.8... connected
* Connected to 172.21.158.8 (172.21.158.8) port 69 (#0)
* set timeouts for state 0; Total 300, retry 6 maxtry 50
* got option=(tsize) value=(388)
* tsize parsed from OACK (388)
* got option=(blksize) value=(512)
* blksize parsed from OACK (512) requested (512)
  % Total % Received % Xferd Average Speed Time Time Time
 Current
                                 Dload Upload Total Spent Left
 Speed
  0 776 0 0 0 0 0 0 --:--:-- --:--:-- --:--:--
  0* Connected for transmit
* set timeouts for state 2; Total 3600, retry 15 maxtry 24
 55 776 0 0 129 388 0 153k --:--:-- --:--:-- --:--:--
 153k* Closing connection #0

Is there some known bug in libcurl-7.28.1 that has been fixed in later
versions? How can I debug what the problem is?

Thanks,
Priyanka.

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-11-21