[libsoup/wip/http2: 3/4] session: create a new connection for preconnect requests that couldn't steal an ongoing connection




commit 684c468d9982f519a645c9f952457d73a02b6c22
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]