[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: non-blocking I/O tests
From: |
Eric Blake |
Subject: |
Re: non-blocking I/O tests |
Date: |
Fri, 15 Apr 2011 12:49:09 -0600 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110307 Fedora/3.1.9-0.39.b3pre.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.9 |
On 04/10/2011 08:12 PM, Bruno Haible wrote:
> Hi Eric,
>
> I was a bit suspicious whether non-blocking I/O on Woe32 sockets really work.
> So I set out to write a unit test for it. Sockets are a bit more complicated
> than pipes, so I started with the pipes.
>
> Find attached this unit test - for testing, not yet ready to be committed -.
>
> Can you please review it? The test passes on Linux, FreeBSD, OpenBSD, MacOS X,
> but fails on Solaris 2.6, OSF/1 5.1, IRIX 6.5, Cygwin 1.5 and 1.7, and mingw.
Which version of cygwin did you test? It passed for me on cygwin 1.7.9
(but cygwin 1.7.9 introduced a broken strchrnul, so I'll have to fix
that...)
>
> If already non-blocking pipes are buggy on so many platforms, what do we have
> to expect from non-blocking sockets...?
>
> Or maybe you can find a problem with my test, that I didn't see?
Not on my first glance, but can you enumerate the actual failures?
--
Eric Blake address@hidden +1-801-349-2682
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature