]> granicus.if.org Git - curl/commit
multi_socket: improved 100-continue timeout handling
authorDaniel Stenberg <daniel@haxx.se>
Tue, 27 Aug 2013 20:32:51 +0000 (22:32 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 27 Aug 2013 22:07:12 +0000 (00:07 +0200)
commita691e044705f12715fcd3310a9832dd5de79bff0
treeb28f8575c2cdc608f84399454246c78a49eb1247
parent3d1a453d887a6272f48c241af6190d17891aef02
multi_socket: improved 100-continue timeout handling

When waiting for a 100-continue response from the server, the
Curl_readwrite() will refuse to run if called until the timeout has been
reached.

We timeout code in multi_socket() allows code to run slightly before the
actual timeout time, so for test 154 it could lead to the function being
executed but refused in Curl_readwrite() and then the application would
just sit idling forever.

This was detected with runtests.pl -e on test 154.
lib/easy.c
lib/multi.c
lib/multiif.h
lib/transfer.c