Closed jlaliMohamed closed 2 years ago
Hi @jlaliMohamed can you give more details on why you think this is invalid?
Hi @danewalton, The problem is produced when using http_compact, tlsio mbedtls and proxy. After sending a successful http request (using mebdtls as a TLS layer and proxy) we receive a log like this:
[... httpapi_compact.c:774 ] Waiting for TLS connection
[... httpapi_compact.c:774 ] Waiting for TLS connection
[... httpapi_compact.c:774 ] Waiting for TLS connection
[... http_proxy_io.c:785 ] Invalid tlsio_state. Expected state is HTTP_PROXY_IO_STATE_OPEN.
when closing the io socket, the tls (for mbdtls) does the closing, then in the destroy tlsio_mbedtls_destroy function it calls the xio_close again. To resume is a double call of xio_close ()
I have a repro. Looking into it to double check this is the right solution.
/azp run
fixed ut in #572
remove invalid xio_close when using http_compact, mbedtls and proxy