multi_runsingle: move timestamp into INIT
authorDaniel Stenberg <daniel@haxx.se>
Mon, 17 Feb 2014 22:43:31 +0000 (23:43 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 3 Mar 2014 15:35:04 +0000 (16:35 +0100)
commit0b3750b5c23c25f1bcf4ed95edf8928ce4fd06cc
treed1d8ff35b7fa0049294c8ee3ad9b76e6a6a3d314
parenta21c04f391b69d4540f613bf696cf773fd159a64
multi_runsingle: move timestamp into INIT

Setting the TIMER_STARTSINGLE timestamp first in CONNECT has the
drawback that for actions that go back to the CONNECT state, the time
stamp is reset and for the multi_socket API there's no corresponding
Curl_expire() then so the timeout logic gets wrong!

Reported-by: Brad Spencer
Bug: http://curl.haxx.se/mail/lib-2014-02/0036.html
lib/multi.c