1. Genki Sugawara
  2. socket-keepalive

Source

socket-keepalive /

Filename Size Date modified Message
ext
lib/socket
45 B
add gemspec
47 B
Added tag 0.1.0 for changeset c40901ad2396
288 B
move README to root
652 B
add description
= 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