Method: Puppet::HTTP::Pool#setsockopts
- Defined in:
- lib/puppet/http/pool.rb
#setsockopts(netio) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Set useful socket option(s) which lack from default settings in Net:HTTP
118 119 120 121 122 123 |
# File 'lib/puppet/http/pool.rb', line 118 def setsockopts(netio) return unless netio socket = netio.io socket.setsockopt(Socket::SOL_SOCKET, Socket::SO_KEEPALIVE, true) end |