]> granicus.if.org Git - curl/commit
multi: fix *getsock() with CONNECT
authorDaniel Stenberg <daniel@haxx.se>
Wed, 11 Feb 2015 22:18:32 +0000 (23:18 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 7 Mar 2015 18:19:22 +0000 (19:19 +0100)
commitc19349951df1fde96c31d68e054e3a36a3b03860
tree6a67e85a7a6a78344cb63c212e284c25079e98a8
parent9da14a96ab5c087814da142c96b2fbdb9ddac9af
multi: fix *getsock() with CONNECT

The code used some happy eyeballs logic even _after_ CONNECT has been
sent to a proxy, while the happy eyeball phase is already (should be)
over by then.

This is solved by splitting the multi state into two separate states
introducing the new SENDPROTOCONNECT state.

Bug: http://curl.haxx.se/mail/lib-2015-01/0170.html
Reported-by: Peter Laser
lib/http_proxy.c
lib/multi.c
lib/multihandle.h