mirror of
https://github.com/curl/curl.git
synced 2026-08-01 08:58:04 +03:00
socks: make the connect phase non-blocking
Removes two entries from KNOWN_BUGS. Closes #4907
This commit is contained in:
parent
d60b1b37a1
commit
4a4b63daaa
13 changed files with 830 additions and 566 deletions
|
|
@ -47,6 +47,7 @@
|
|||
#include "http_proxy.h"
|
||||
#include "http2.h"
|
||||
#include "socketpair.h"
|
||||
#include "socks.h"
|
||||
/* The last 3 #include files should be in this order */
|
||||
#include "curl_printf.h"
|
||||
#include "curl_memory.h"
|
||||
|
|
@ -856,6 +857,9 @@ static int waitconnect_getsock(struct connectdata *conn,
|
|||
return Curl_ssl_getsock(conn, sock);
|
||||
#endif
|
||||
|
||||
if(SOCKS_STATE(conn->cnnct.state))
|
||||
return Curl_SOCKS_getsock(conn, sock, FIRSTSOCKET);
|
||||
|
||||
for(i = 0; i<2; i++) {
|
||||
if(conn->tempsock[i] != CURL_SOCKET_BAD) {
|
||||
sock[s] = conn->tempsock[i];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue