set timeout on socket to 0.5.