Skip to content

Commit 42c8a1a

Browse files
committed
[core] defer TCP_FIN propagate if connect()ing (fixes #3249)
defer TCP_FIN propagate if connect()ing to backend still in progress (thx ultimator) x-ref: "lighttpd-1.4.74/1.4.75 do not close sockets in mod_sockproxy" https://redmine.lighttpd.net/issues/3249
1 parent c46b6e9 commit 42c8a1a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/gw_backend.c

+2
Original file line numberDiff line numberDiff line change
@@ -1915,6 +1915,8 @@ static void gw_conditional_tcp_fin(gw_handler_ctx * const hctx, request_st * con
19151915
if (!chunkqueue_is_empty(&hctx->wb))return;
19161916
if (!hctx->host->tcp_fin_propagate) return;
19171917
if (hctx->gw_mode == GW_AUTHORIZER) return;
1918+
if (hctx->state == GW_STATE_CONNECT_DELAYED)
1919+
return;
19181920
if (r->conf.stream_request_body & FDEVENT_STREAM_REQUEST_BACKEND_SHUT_WR)
19191921
return;
19201922

0 commit comments

Comments
 (0)