<div dir="ltr">Hello,<div><br></div><div>We have a situation with NGINX forward proxy and I would like the community's input on how to handle this.</div><div><br></div><div>We run long-lived TCP sockets in our business, and we authorize transaction requests on behalf of our customers.</div><div><br></div><div>We use NGINX as the TLS termination proxy.</div><div><br></div><div>We are experiencing issues when our customer's internal network goes down but the link stays up, we send transactions to them but nothing comes back (no TCP ACK). We see TCP retransmissions at this point.</div><div><br></div><div>At this point the NGINX send buffer starts filling up, until it reaches the buffer maximum size but the socket is not dropped, we monitor it using netstat output.</div><div><br></div><div>NGINX just does nothing nor logs any error when this happens, this scenario is called EWOULDBLOCK socket error, we handle this in our application but when we introduced NGINX we are now timing out transactions.</div><div><br></div><div>We cannot use proxy_timeout because these are long-lived sockets, some stay up for months waiting for authorization requests.</div><div><br></div><div>Is there any option in NGINX that we can use to close the maxed out socket?</div><div><br></div><div>Thanks,</div><div><br></div></div>