Test socket timeouts with the TLS socket.