[libsoup/wip/http2: 15/16] session: create a new connection for preconnect requests that couldn't steal an ongoing connection
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup/wip/http2: 15/16] session: create a new connection for preconnect requests that couldn't steal an ongoing connection
- Date: Sun, 16 May 2021 13:20:00 +0000 (UTC)
commit 80c3bd279635c4bf1ea435af4f2792b6927674a2
Author: Carlos Garcia Campos <cgarcia igalia com>
Date: Wed May 12 11:22:02 2021 +0200
session: create a new connection for preconnect requests that couldn't steal an ongoing connection
libsoup/soup-session.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/libsoup/soup-session.c b/libsoup/soup-session.c
index 086a1109..abfec76a 100644
--- a/libsoup/soup-session.c
+++ b/libsoup/soup-session.c
@@ -1815,7 +1815,8 @@ get_connection_for_host (SoupSession *session,
/* Always wait if we have a pending connection as it may be
* an h2 connection which will be shared. http/1.x connections
* will only be slightly delayed. */
- return NULL;
+ if (!force_http1 && !need_new_connection && !item->connect_only)
+ return NULL;
default:
break;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]