TFTP: send legal timeout value
authorDaniel Stenberg <daniel@haxx.se>
Fri, 21 May 2010 21:29:52 +0000 (23:29 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 21 May 2010 21:29:52 +0000 (23:29 +0200)
commitd17709da31ee04d825a8f93fcf4c87343ce0fad6
treeb8b2680e48b6b93f4d981f8d64296e9cf1eefdcf
parent0bb6deda721796c8bf501c8bcbf86998b51f2828
TFTP: send legal timeout value

Eric Mertens posted bug #3003705: when we made TFTP use the
correct timeout option when sent to the server (fixed May 18th
2010) it became obvious that libcurl used invalid timeout values
(300 by default while the RFC allows nothing above 255). While of
course it is obvious that as TFTP has worked thus far without
being able to set timeout at all, just removing the setting
wouldn't make any difference in behavior. I decided to still keep
it (but fix the problem) as it now actually allows for easier
(future) customization of the timeout.

(http://curl.haxx.se/bug/view.cgi?id=3003705)
CHANGES
lib/tftp.c