set socket timeout before first recv()