Hi Gustavo,
I was searching for the default setting for the TCP keep-alive property, as you mentioned, but I didn't get too far...
What I found:
1) In net\dial.go the function Dial takes care of setting the keepalive property, as long as the Dialer has it's KeepAlive set, and the value is greater then 0.
2) The only default setting I could find for the Dialer keepalive, is in http\transport.go, when the DefaultTransport RoundTripper is defined. Here, the KeepAlive has 30 * time.Second set as a default.
In mongolib I could not find any other related default. The timeout variable can be set, but as far as I saw, this has no effect on the keepalive value.
What am I missing here? Do you have any idea?
Thank you,
Berni.