GitHub user spmallette opened a pull request: https://github.com/apache/tinkerpop/pull/800
TINKERPOP-1726 Added idleReadLimit and idleWriteLimit for Gremlin Server https://issues.apache.org/jira/browse/TINKERPOP-1726 This enables Gremlin Server to periodically ping clients and auto-close zombie connections when a client disappears unexpectedly. I did a fair bit of manual testing as this wasn't easy to write unit tests for and it all seems to behave as expected. I did write a decent integration test so that's good. I'm not sure how useful this feature is for the more advanced drivers like the Java Driver because it constantly pings from its end to keep the connection alive even if the client isn't sending requests. I've also found that somehow the server was already pretty good at realizing when a client using the Java Driver goes dead completely (maybe something happening at a network level? i couldn't isolate it) and cleaning up. So...anyway, this seems like more of a precautionary feature for users who find they have a problem like the one described in the JIRA issue or perhaps if they are using a less featured driver. Note that the feature is disabled by default. All tests pass with `docker/build.sh -t -n -i` VOTE +1 You can merge this pull request into a Git repository by running: $ git pull https://github.com/apache/tinkerpop TINKERPOP-1726 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/tinkerpop/pull/800.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #800 ---- commit 10ab33410862ccb935e911b028c27f4cd835b70f Author: Stephen Mallette <spmva@...> Date: 2018-02-16T21:19:56Z TINKERPOP-1726 Added idleReadLimit and idleWriteLimit for Gremlin Server This enables Gremlin Server to periodically ping clients and auto-close zombie connections when a client disappears without issuing a close. ---- ---