File tree 1 file changed +6
-0
lines changed 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -2439,6 +2439,8 @@ ngx_http_lua_pipe_proc_read_stdout_cleanup(void *data)
2439
2439
if (c ) {
2440
2440
rev = c -> read ;
2441
2441
ngx_http_lua_pipe_clear_event (rev );
2442
+ ngx_close_connection (c );
2443
+ proc -> pipe -> stdout_ctx -> c = NULL ;
2442
2444
}
2443
2445
2444
2446
wait_co_ctx -> cleanup = NULL ;
@@ -2461,6 +2463,8 @@ ngx_http_lua_pipe_proc_read_stderr_cleanup(void *data)
2461
2463
if (c ) {
2462
2464
rev = c -> read ;
2463
2465
ngx_http_lua_pipe_clear_event (rev );
2466
+ ngx_close_connection (c );
2467
+ proc -> pipe -> stderr_ctx -> c = NULL ;
2464
2468
}
2465
2469
2466
2470
wait_co_ctx -> cleanup = NULL ;
@@ -2483,6 +2487,8 @@ ngx_http_lua_pipe_proc_write_cleanup(void *data)
2483
2487
if (c ) {
2484
2488
wev = c -> write ;
2485
2489
ngx_http_lua_pipe_clear_event (wev );
2490
+ ngx_close_connection (c );
2491
+ proc -> pipe -> stdin_ctx -> c = NULL ;
2486
2492
}
2487
2493
2488
2494
wait_co_ctx -> cleanup = NULL ;
You can’t perform that action at this time.
0 commit comments