File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -1270,7 +1270,7 @@ ngx_http_upstream_check_connect_handler(ngx_event_t *event) {
1270
1270
c -> sendfile = 0 ;
1271
1271
c -> read -> log = c -> log ;
1272
1272
c -> write -> log = c -> log ;
1273
- c -> pool = ngx_create_pool (ngx_pagesize , ngx_cycle -> log );
1273
+ c -> pool = ngx_create_pool (NGX_CYCLE_POOL_SIZE , ngx_cycle -> log );
1274
1274
#if (NGX_HTTP_SSL )
1275
1275
if (is_https_check_type && rc == NGX_AGAIN ) {
1276
1276
c -> write -> handler = ngx_http_upstream_do_ssl_handshake ;
@@ -1299,10 +1299,7 @@ static void free_SSL_data(ngx_http_upstream_check_peer_t *peer) {
1299
1299
ngx_connection_t * c = peer -> pc .connection ;
1300
1300
if (is_https_check (peer ) &&
1301
1301
c -> ssl ) {
1302
- ngx_ssl_free_buffer (c );
1303
- c -> ssl -> no_wait_shutdown = 1 ;
1304
- c -> ssl -> no_send_shutdown = 1 ;
1305
- ngx_ssl_shutdown (c );
1302
+ SSL_free (c -> ssl -> connection );
1306
1303
c -> ssl = NULL ;
1307
1304
}
1308
1305
}
@@ -1315,7 +1312,7 @@ static void ngx_http_upstream_do_ssl_handshake(ngx_event_t *event) {
1315
1312
c = event -> data ;
1316
1313
peer = c -> data ;
1317
1314
ucscf = peer -> conf ;
1318
- rc = ngx_ssl_create_connection (& ucscf -> ssl , c , NGX_SSL_CLIENT );
1315
+ rc = ngx_ssl_create_connection (& ucscf -> ssl , c , NGX_SSL_BUFFER | NGX_SSL_CLIENT );
1319
1316
if (rc != NGX_OK ) {
1320
1317
return ;
1321
1318
}
You can’t perform that action at this time.
0 commit comments