Added timeout to socket options