summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorDavid CARLIER <devnexen@gmail.com>2022-05-02 11:33:57 +0100
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2022-09-21 15:23:50 +0900
commit8a9dfb676b0df74644ddd1db6cfefdd2c9283e8a (patch)
treefbaa78221a06fa18967cdc42f2d94f856b3c0c01 /ext
parent017573c3b373290e52f6e9a8fca217039980247d (diff)
sockets add `TCP_CONNECTION_INFO` and `TCP_KEEPALIVE` constants.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/5871
Diffstat (limited to 'ext')
-rw-r--r--ext/socket/mkconstants.rb2
1 files changed, 2 insertions, 0 deletions
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)