[libsoup/wip/http2: 7/8] 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: 7/8] session: create a new connection for preconnect requests that couldn't steal an ongoing connection
- Date: Wed, 12 May 2021 09:32:10 +0000 (UTC)
commit 2b58016585bc713049dbef199bbb731c52ac5299
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 757f0540..eaa7d794 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]