module Sanford::Worker::TCPCork

Public Class Methods

apply(socket) click to toggle source

3 == TCP_CORK

# File lib/sanford/worker.rb, line 69
def self.apply(socket)
  socket.setsockopt(::Socket::IPPROTO_TCP, 3, true)
end
remove(socket) click to toggle source
# File lib/sanford/worker.rb, line 73
def self.remove(socket)
  socket.setsockopt(::Socket::IPPROTO_TCP, 3, false)
end