title: How to detect Client disconnect (HTTP 499) in nginx with a FastCGI App
body: <p>Nginx successfully detect when a client disconnects before the response is sent, and it is logged in the access logs as code 499
  But my FastCGI (in C) app does not give out any error during responding.</p>
  
  <p>Is there a way to detect client timeout in FastCGI(in C) behind nginx?</p>