From 94cb8153b194b4bd0abf0f33956af8ba484582d1 Mon Sep 17 00:00:00 2001 From: Thomas Bloor Date: Fri, 14 Sep 2018 17:48:23 +0100 Subject: [PATCH] PERL-780 added documentation for TCP keepalive --- lib/MongoDB/MongoClient.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/MongoDB/MongoClient.pm b/lib/MongoDB/MongoClient.pm index 613c126f..549585cd 100644 --- a/lib/MongoDB/MongoClient.pm +++ b/lib/MongoDB/MongoClient.pm @@ -745,6 +745,10 @@ If set to a negative value, socket operations will block indefinitely until the server replies or until the operating system TCP/IP stack gives up. +The driver automatically sets the TCP keepalive option when initializing the +socket. For keepalive related issues, check the MongoDB documentation for +L. + A zero value polls the socket for available data and is thus likely to fail except when talking to a local process (and perhaps even then).