curl / Mailing Lists / curl-users / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Reg curl tftp upload issue

From: murugan balraj via curl-users <curl-users_at_cool.haxx.se>
Date: Thu, 7 May 2020 16:58:08 +0530

Hi ,

I am facing issue in curl tftp upload. Upload stops after reaching some
percentage.
Curl progress stops, stays in the same percentage till the timeout happens
(300 seconds).

curl -T logfile tftp://135.249.31.96/ -#
###################
                                        15.0%
#

*linux machine1 ( curl tftp client ) --> linux macine2 tftp-hpa 5.2 server*

The issue is not observed on all the linux machines that i have tried. 1
machine this issue is observed for now.

*Observations :*
-The upload file size is around ~50 mb.
-Upload transfer rate between the tftp client & tftp server is between the
range of 200kbps - 700kbps.
-For different block size (curl --tftp-blksize option : 512, 1024, 2048)..
Same issue observed.
-During problematic upload : tftp upload was resuming when making the tftp
server interface down & up.
-When try capturing the logs using strace the slow tftp issue is not
reproducing. Curl upload is reaching 100 %.
*strace -s 512 -o /tmp/curl-strace-tftp curl -T logfile
tftp://135.249.31.96/ <http://135.249.31.96/> -#*
-Tried changing tftp server (linux macine2 tftp-hpa 5.2 server) -->
(Windows TFTP server). Curl tftp upload was successful.

-tftp upload using linux *"busybox tftp" *for the same file worked. File
upload was successful.

Note : curl tftp download behaviour is not checked yet (with the linux
macine2 tftp-hpa 5.2 server). Yet to check this.

*curl version :*
~ # curl --version
curl 7.68.0 (mips64-buildroot-linux-gnu) libcurl/7.68.0 OpenSSL/1.0.2q
zlib/1.2.11 libssh2/1.9.0
Release-Date: 2020-01-08
Protocols: file ftp ftps http https scp sftp tftp
Features: AsynchDNS HTTPS-proxy IPv6 Largefile libz NTLM SSL TLS-SRP
UnixSockets
~ #

Please share your views/directions. Thanks.

Regards ,
Murugan

-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2020-05-07