Source

socket-keepalive /

Filename Size Date modified Message
ext
lib/socket
45 B
47 B
288 B
652 B
= socket-keepalive

== Description

TCP Keepalive extension for Ruby

== Install

gem install socket-keepalive

== Example

  require 'socket'
  require 'socket/keepalive'
  
  s = TCPSocket.open('localhost', 7)
  
  s.keepalive = true
  s.keepidle = 15
  s.keepintvl = 5
  s.keepcnt = 3