title: Can nginx explicitly close websocket connection when graceful shutdown via nginx -s quit?
body: <p>I configured a nginx instances as a reverse proxy for a websocket server and established a websocket between client and server, according to the official tutorial <a href="https://www.nginx.com/blog/websocket-nginx/" rel="nofollow noreferrer">https://www.nginx.com/blog/websocket-nginx/</a>.</p>
  
  <p>Then I run <code>nginx -s quit</code> to gracefully shut down nginx.</p>
  
  <p>I found that a worker process is always in a status <code>shutting down..</code> and I can still send message via the established websocket connection, then the nginx master and worker process will hang up until timeout.</p>
  
  <p><strong>I'd like to know if nginx supports the function that telling both client and server to close the socket connection on transportation level and exit normally, instead of waiting for the websocket time out.</strong></p>