Added keepalive option to sockets in Client and Server