From 8a9dfb676b0df74644ddd1db6cfefdd2c9283e8a Mon Sep 17 00:00:00 2001 From: David CARLIER Date: Mon, 2 May 2022 11:33:57 +0100 Subject: [PATCH] sockets add `TCP_CONNECTION_INFO` and `TCP_KEEPALIVE` constants. --- ext/socket/mkconstants.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/socket/mkconstants.rb b/ext/socket/mkconstants.rb index 4de4b2248c..5e1fcc40d1 100644 --- a/ext/socket/mkconstants.rb +++ b/ext/socket/mkconstants.rb @@ -671,9 +671,11 @@ IPX_TYPE TCP_NODELAY nil Don't delay sending to coalesce packets TCP_MAXSEG nil Set maximum segment size +TCP_CONNECTION_INFO nil Retrieve information about this socket (macOS) TCP_CORK nil Don't send partial frames (Linux 2.2, glibc 2.2) TCP_DEFER_ACCEPT nil Don't notify a listening socket until data is ready (Linux 2.4, glibc 2.2) TCP_INFO nil Retrieve information about this socket (Linux 2.4, glibc 2.2) +TCP_KEEPALIVE nil Idle time before keepalive probes are sent (macOS) TCP_KEEPCNT nil Maximum number of keepalive probes allowed before dropping a connection (Linux 2.4, glibc 2.2) TCP_KEEPIDLE nil Idle time before keepalive probes are sent (Linux 2.4, glibc 2.2) TCP_KEEPINTVL nil Time between keepalive probes (Linux 2.4, glibc 2.2)