修改ssl shutdown相关逻辑
This commit is contained in:
@@ -2107,8 +2107,12 @@ void ssl_stream_free_and_close_fd(struct ssl_stream * s_stream, struct event_bas
|
||||
ssl_stream_process_error(s_stream, sslerr, s_stream->mgr);
|
||||
}
|
||||
}
|
||||
sslshutctx = ssl_shutdown_ctx_new(s_stream, evbase);
|
||||
pxy_ssl_shutdown_cb(fd, 0, sslshutctx);
|
||||
//sslshutctx = ssl_shutdown_ctx_new(s_stream, evbase);
|
||||
//pxy_ssl_shutdown_cb(fd, 0, sslshutctx);
|
||||
SSL_set_shutdown(s_stream->ssl, SSL_RECEIVED_SHUTDOWN);
|
||||
SSL_shutdown(s_stream->ssl);
|
||||
ssl_stream_free(s_stream);
|
||||
evutil_closesocket(fd);
|
||||
}
|
||||
|
||||
int ssl_manager_add_trust_ca(struct ssl_mgr* mgr, const char* pem_file)
|
||||
|
||||
Reference in New Issue
Block a user