]> git.evergreen-ils.org Git - 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)
committerGalen Charlton <gmc@esilibrary.com>
Tue, 19 Aug 2014 22:50:47 +0000 (15:50 -0700)
commita02360aadfcd113cbec88d9c2455e42fdd74e536
tree3eb4cf3444ef345b0a7e1db6338744bad122af8c
parentbef394a7c24df54f1e63fc3e83cd473195a46c3a
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>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
src/gateway/osrf_websocket_translator.c