Skip to content

v1.0.6

Latest
Compare
Choose a tag to compare
@ikogan ikogan released this 29 Mar 18:54
· 7 commits to master since this release

Threading and TCP Keep Alive Fixes

  • Properly share the OAuth client list between invocations. This means we don't grab a new token for every request.
  • Don't validate OAuth tokens twice when getting a new token.
  • Enable SO_KEEPALIVE on request sockets to ensure that TCP Keep Alive packets are sent to avoid zealous firewalls/proxies that terminate idle TCP sessions when Rundeck jobs take a long time.

Note that for most platforms, the keep alive timers are configured system wide. For Linux, for example, the following sysctls are relevant:

net.ipv4.tcp_keepalive_time = 7200
net.ipv4.tcp_keepalive_intvl = 75
net.ipv4.tcp_keepalive_probes = 9

While it's possible to use TCP_KEEPIDLE to manually set the keep alive time, this isn't portable so the JVM doesn't provide a way to use it.