Set keepAlive on connected socket.

#198
Merge pull request #199 from ravensteel/198

Set keepAlive on connected socket.