Commit 2f636a6e authored by Artur Bergman's avatar Artur Bergman

revert r4160 and r4161 since apparently they do not fix the problem

git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@4163 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 3f1c4cc9
......@@ -57,11 +57,6 @@ SVNID("$Id$")
#include "libvarnish.h"
/* Solaris can't use the ioctl" */
#ifdef __sun
#include <fcntl.h>
#endif
/*--------------------------------------------------------------------*/
void
......@@ -132,9 +127,6 @@ TCP_filter_http(int sock)
* us to do two syscalls, one to get and one to set, the latter of
* which mucks about a bit before it ends up calling ioctl(FIONBIO),
* at least on FreeBSD.
*
* On some platforms we need to use fcntl because the ioctl is unreliable
* The one that we know this is the case for is solaris.
*/
void
......@@ -142,13 +134,8 @@ TCP_blocking(int sock)
{
int i;
#ifdef __sun
i = fcntl (sock, F_GETFL,0);
fcntl(sock, F_SETFL, i & ~O_NONBLOCK);
#else
i = 0;
AZ(ioctl(sock, FIONBIO, &i));
#endif
}
void
......@@ -156,13 +143,8 @@ TCP_nonblocking(int sock)
{
int i;
#ifdef __sun
i = fcntl (sock, F_GETFL,0);
fcntl(sock, F_SETFL, i | O_NONBLOCK);
#else
i = 1;
AZ(ioctl(sock, FIONBIO, &i));
#endif
}
/*--------------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment