Added keepalive option on gen_tcp connect