mirror of
https://github.com/moparisthebest/curl
synced 2025-01-11 05:58:01 -05:00
multi: getsock improvements for QUIC connecting
This commit is contained in:
parent
5848f27594
commit
437bf10cad
@ -832,7 +832,13 @@ static int waitconnect_getsock(struct connectdata *conn,
|
||||
for(i = 0; i<2; i++) {
|
||||
if(conn->tempsock[i] != CURL_SOCKET_BAD) {
|
||||
sock[s] = conn->tempsock[i];
|
||||
rc |= GETSOCK_WRITESOCK(s++);
|
||||
rc |= GETSOCK_WRITESOCK(s);
|
||||
#ifdef ENABLE_QUIC
|
||||
if(conn->transport == TRNSPRT_QUIC)
|
||||
/* when connecting QUIC, we want to read the socket too */
|
||||
rc |= GETSOCK_READSOCK(s);
|
||||
#endif
|
||||
s++;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user