r4161 - trunk/varnish-cache/lib/libvarnish
Artur Bergman
sky at crucially.net
Tue Aug 4 19:41:26 CEST 2009
On Aug 4, 2009, at 7:07 PM, Dag-Erling Smørgrav wrote:
> sky at projects.linpro.no writes:
>> void
>> 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
>> }
>
> Missing error check for the fcntl case.
Yes, also reverted since it didn't help (initial user feedback was
wrong)
Artur
More information about the varnish-commit
mailing list