Module: TcpUserTimeout::Hook

Defined in:
lib/tcp_user_timeout/hook.rb

Overview

Prepend hooks on Socket / TCPSocket that apply the currently-scoped TCP_USER_TIMEOUT (and optional keepalive params) to newly created outbound TCP sockets. Pre-existing sockets — including DB / HTTP pool connections created at boot — are never re-bound; they pass through the hook only on the call that created them.

Defined Under Namespace

Modules: SocketTcp, TCPSocketSingleton