curl-library
PATCH: fix for tftp upload when using options (OACK).
Date: Thu, 25 Feb 2010 10:28:54 -0800
My previous patch had a bug. After fixing that (first block should
have been 1 instead of 0), I successfully tested upload of tftp against
standard Fedora 11 tftp server (tftp-hpa).
[greearb@ben-dt2 src]$ ./curl -T foo.out -v tftp://192.168.100.174/bthelper
* About to connect() to 192.168.100.174 port 69 (#0)
* Trying 192.168.100.174... connected
* Connected to 192.168.100.174 (192.168.100.174) port 69 (#0)
* set timeouts for state 0; Total 300, retry 6 maxtry 50
* got option=(tsize) value=(27140096)
* tsize parsed from OACK (27140096)
* 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 51.7M 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Connected for transmit
* set timeouts for state 2; Total 3600, retry 15 maxtry 24
50 51.7M 0 0 100 25.8M 0 1904k 0:00:13 0:00:13 --:--:-- 1904k* Closing connection #0
The updated patch is attached. Please consider applying this to
libcurl under whatever license you wish.
Let me know if you need changes to the patch in order to accept it.
Thanks,
Ben
-- Ben Greear <greearb_at_candelatech.com> Candela Technologies Inc http://www.candelatech.com
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
- text/plain attachment: curl-tftp.patch