set timeouts on send() and recv()