]> granicus.if.org Git - curl/commitdiff
connect: connections are persistent by default for HTTP/3
authorDaniel Stenberg <daniel@haxx.se>
Mon, 12 Aug 2019 21:56:07 +0000 (23:56 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 14 Aug 2019 21:14:12 +0000 (23:14 +0200)
lib/connect.c

index 1b9ca35c5f17f5f21d4befbda96beab1889770bf..aec397296209a2eaebfcbc414a57f7c5dcb214bd 100644 (file)
@@ -790,6 +790,7 @@ CURLcode Curl_is_connected(struct connectdata *conn,
         conn->sock[sockindex] = conn->tempsock[i];
         conn->ip_addr = conn->tempaddr[i];
         conn->tempsock[i] = CURL_SOCKET_BAD;
+        connkeep(conn, "HTTP/3 default");
       }
       return result;
     }
@@ -858,7 +859,9 @@ CURLcode Curl_is_connected(struct connectdata *conn,
     else if(rc & CURL_CSELECT_ERR)
       (void)verifyconnect(conn->tempsock[i], &error);
 
+#ifdef ENABLE_QUIC
     error:
+#endif
     /*
      * The connection failed here, we should attempt to connect to the "next
      * address" for the given host. But first remember the latest error.