1
0
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:
Daniel Stenberg 2019-08-13 08:41:53 +02:00
parent 5848f27594
commit 437bf10cad
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -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++;
}
}