diff options
author | Daniel Stenberg <daniel@haxx.se> | 2019-04-30 11:14:38 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2019-05-01 22:51:23 +0200 |
commit | be6e281cf2792b06b6d413d120b4a9381e4b0653 (patch) | |
tree | a2b34a119ec3081931cb90720a3af68c3e1ec3b3 /lib/vtls/gtls.c | |
parent | 5c8783d77f341d69e866bf0cd56836b4faea0a1f (diff) | |
download | curl-be6e281cf2792b06b6d413d120b4a9381e4b0653.tar.gz |
multi: provide Curl_multiuse_state to update information
As soon as a TLS backend gets ALPN conformation about the specific HTTP
version it can now set the multiplex situation for the "bundle" and
trigger moving potentially queued up transfers to the CONNECT state.
Diffstat (limited to 'lib/vtls/gtls.c')
-rw-r--r-- | lib/vtls/gtls.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/vtls/gtls.c b/lib/vtls/gtls.c index e224861c4..40e61c701 100644 --- a/lib/vtls/gtls.c +++ b/lib/vtls/gtls.c @@ -55,6 +55,7 @@ #include "strcase.h" #include "warnless.h" #include "x509asn1.h" +#include "multiif.h" #include "curl_printf.h" #include "curl_memory.h" /* The last #include file should be: */ @@ -1449,6 +1450,9 @@ gtls_connect_step3(struct connectdata *conn, } else infof(data, "ALPN, server did not agree to a protocol\n"); + + Curl_multiuse_state(conn, conn->negnpn == CURL_HTTP_VERSION_2 ? + BUNDLE_MULTIPLEX : BUNDLE_NO_MULTIUSE); } #endif |