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/cyassl.c | |
parent | 5c8783d77f341d69e866bf0cd56836b4faea0a1f (diff) |
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/cyassl.c')
-rw-r--r-- | lib/vtls/cyassl.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/vtls/cyassl.c b/lib/vtls/cyassl.c index c7a3268ef..2fd8f486c 100644 --- a/lib/vtls/cyassl.c +++ b/lib/vtls/cyassl.c @@ -79,6 +79,7 @@ and that's a problem since options.h hasn't been included yet. */ #include "strcase.h" #include "x509asn1.h" #include "curl_printf.h" +#include "multiif.h" #include <cyassl/openssl/ssl.h> #include <cyassl/ssl.h> @@ -599,6 +600,8 @@ cyassl_connect_step2(struct connectdata *conn, else infof(data, "ALPN, unrecognized protocol %.*s\n", protocol_len, protocol); + Curl_multiuse_state(conn, conn->negnpn == CURL_HTTP_VERSION_2 ? + BUNDLE_MULTIPLEX : BUNDLE_NO_MULTIUSE); } else if(rc == SSL_ALPN_NOT_FOUND) infof(data, "ALPN, server did not agree to a protocol\n"); |