]> git.evergreen-ils.org Git - working/OpenSRF.git/commit
LP#1268619: websocket translator idle timeout / graceful shutdown
authorBill Erickson <berick@esilibrary.com>
Tue, 14 Jan 2014 21:22:23 +0000 (16:22 -0500)
committerBill Erickson <berick@esilibrary.com>
Sun, 4 May 2014 20:10:35 +0000 (16:10 -0400)
commitc408d395086034125c6adb352ca312059e3968bd
tree5b7ad1ed0a565d6db1f38cef38bdd82b62d31194
parent72bd13d74261ffcaeb82788a2ca597a7a62e37fc
LP#1268619: websocket translator idle timeout / graceful shutdown

Added support for an idle timeout and idle check interval configuration
variables.  These allow each websocket apache process to kick off
clients that have been connected and are idle for too long, thus hogging
a process unnecessarily.

Added a SIGUSR1 signal handler which forces the idle timeout to be very
low and a short re-check period so that the client can be kicked as soon
as there are no open conversations.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
src/gateway/osrf_websocket_translator.c