Reg curl tftp upload issue
Date: Thu, 7 May 2020 16:58:08 +0530
I am facing issue in curl tftp upload. Upload stops after reaching some
Curl progress stops, stays in the same percentage till the timeout happens
curl -T logfile tftp://22.214.171.124/ -#
*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.
-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://126.96.36.199/ <http://188.8.131.52/> -#*
-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
Protocols: file ftp ftps http https scp sftp tftp
Features: AsynchDNS HTTPS-proxy IPv6 Largefile libz NTLM SSL TLS-SRP
Please share your views/directions. Thanks.