From 72c34321d32207ec7ee2d3da2db82ba9755fb3c9 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Sat, 16 Apr 2011 10:46:21 +0100 Subject: Revert Pavel's patch looping in recv Signed-off-by: Andy Green --- lib/client-handshake.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'lib/client-handshake.c') 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"); -- cgit v1.2.3