Module: Sanford::Worker::TCPCork
- Defined in:
- lib/sanford/worker.rb
Class Method Summary collapse
-
.apply(socket) ⇒ Object
3 == TCP_CORK.
- .remove(socket) ⇒ Object
Class Method Details
.apply(socket) ⇒ Object
3 == TCP_CORK
69 70 71 |
# File 'lib/sanford/worker.rb', line 69 def self.apply(socket) socket.setsockopt(::Socket::IPPROTO_TCP, 3, true) end |
.remove(socket) ⇒ Object
73 74 75 |
# File 'lib/sanford/worker.rb', line 73 def self.remove(socket) socket.setsockopt(::Socket::IPPROTO_TCP, 3, false) end |