Setting keep alive on the sockets