mozilla-services / pushgo

🚨🚨🚨OBSOLETE AND UNMAINTAINED🚨🚨🚨 See Autopush for the current server.
https://github.com/mozilla-services/autopush
Mozilla Public License 2.0
24 stars 10 forks source link

Expose `TCP_USER_TIMEOUT` as a config option #227

Closed ghost closed 9 years ago

ghost commented 9 years ago

This was added to the Linux kernel (2.6.37) in torvalds/linux@dca43c75e7e545694a9dd6288553f55c53e2a3a3. We'll want this to prune dead sockets to avoid long TCP retransmission delays. Go doesn't set this option for us, so we'll need to use (golang.org/x/sys/unix).SetsockoptInt.

bbangert commented 9 years ago

I've made PR's to our TCP settings that address this in the puppet repo.