Welcome! Log In Create A New Profile

Advanced

Detection of external client disconnect

Detection of external client disconnect
October 07, 2016 05:36AM
Hi,

We are using Nginx along with FCGI library. We are investigating an issue where in an external client disconnects from the network after send a request to our Nginx server. We are using FCGX_PutStr() to send the response. This API does not seem to fail even after the external client has disconnected from the network. We also tried calling FCGX_FFlush() immediately after the FCGX_PutStr() call. But both of these API return success always.

Could anyone please let us know how we can fine tune Nginx / FCGI to immediately detect and return an error when the external client has disconnected from the network.

Thanks,
-Ravi



Edited 1 time(s). Last edit at 10/07/2016 05:37AM by ravindra.h@gmail.com.
Re: Detection of external client disconnect
October 07, 2016 05:41AM
Hi,

We further tried using following options in the configuration file which seems to work for responses which have lot of data.

fastcgi_buffering off;
proxy_buffering off;

But, still for responses which have lesser data we are unable to detect that the client has disconnected from the network.

Any suggestion on how to detect client disconnect properly would be very appreciated.

Thanks,
-Ravi
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 161
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready