lib/monetdb/connection.rb in monetdb-0.2.5 vs lib/monetdb/connection.rb in monetdb-0.2.6
- old
+ new
@@ -57,9 +57,10 @@
end
def connect
disconnect if connected?
@socket = TCPSocket.new config[:host], config[:port].to_i
+ socket.setsockopt Socket::SOL_SOCKET, Socket::SO_KEEPALIVE, true
setup
true
end
def disconnect