diff options
author | Andy Green <andy@warmcat.com> | 2011-04-16 10:46:21 +0100 |
---|---|---|
committer | Andy Green <andy@warmcat.com> | 2011-04-16 10:46:21 +0100 |
commit | 72c34321d32207ec7ee2d3da2db82ba9755fb3c9 (patch) | |
tree | 0b2d541e7d4004074a914f6bf6be75ff01843c2c /lib/client-handshake.c | |
parent | 4b65a562a59ce79ec03a4d1720af8eedaeca5af9 (diff) |
Revert Pavel's patch looping in recv
Signed-off-by: Andy Green <andy@warmcat.com>
Diffstat (limited to 'lib/client-handshake.c')
-rw-r--r-- | lib/client-handshake.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/client-handshake.c b/lib/client-handshake.c index 9b502cf..de306a6 100644 --- a/lib/client-handshake.c +++ b/lib/client-handshake.c @@ -34,7 +34,6 @@ libwebsocket_client_connect(struct libwebsocket_context *context, { struct hostent *server_hostent; struct sockaddr_in server_addr; - struct timeval tv; char pkt[512]; struct pollfd pfd; struct libwebsocket *wsi; @@ -169,12 +168,6 @@ libwebsocket_client_connect(struct libwebsocket_context *context, /* Disable Nagle */ setsockopt(wsi->sock, IPPROTO_TCP, TCP_NODELAY, &opt, sizeof(opt)); - /* Set receiving timeout */ - tv.tv_sec = 0; - tv.tv_usec = 100 * 1000; - setsockopt(wsi->sock, SOL_SOCKET, SO_RCVTIMEO, (char *)&tv, - sizeof(tv)); - if (connect(wsi->sock, (struct sockaddr *)&server_addr, sizeof(struct sockaddr)) == -1) { fprintf(stderr, "Connect failed\n"); |