Add KEEP_ALIVE option to the socket connected with sdb server.