]> git.ipfire.org Git - thirdparty/curl.git/commit
curl: timeout in the read callback
authorDaniel Stenberg <daniel@haxx.se>
Thu, 27 Oct 2022 11:40:06 +0000 (13:40 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 28 Oct 2022 15:57:14 +0000 (17:57 +0200)
commita55256cfb2425a6d37ac8173a6a5cdf5b3529be0
tree794c9390fccbeaa18cbc50612c991cea315f379e
parentb830f9ba9e94acf672cd191993ff679fa888838b
curl: timeout in the read callback

The read callback can timeout if there's nothing to read within the
given maximum period. Example use case is when doing "curl -m 3
telnet://example.com" or anything else that expects input on stdin or
similar that otherwise would "hang" until something happens and then not
respect the timeout.

This fixes KNOWN_BUG 8.1, first filed in July 2009.

Bug: https://sourceforge.net/p/curl/bugs/846/

Closes #9815
docs/KNOWN_BUGS
src/tool_cb_rea.c
src/tool_cfgable.h
src/tool_getparam.c
src/tool_operate.c
src/tool_operate.h
src/tool_paramhlp.c
src/tool_paramhlp.h
src/tool_sdecls.h