cURL / Mailing Lists / curl-library / Single Mail


RE: sws test server with --fork

From: Joe Mason <>
Date: Mon, 6 Aug 2012 17:50:41 +0000

> From: curl-library [] on behalf of Joe Mason
> []
> I noticed that all the existing includes in sws.c used autoconf "HAVE_FOO"
> checks, which I didn't bother including while I was developing this - are
> there any features that need to be wrapped for other platforms?

In fact, there was one - fcntl(O_NONBLOCK - and there's an existing curlx_nonblock wrapper for it.

I've updated to use curlx_nonblock and select - sws should be cross-platform again now.

I also fixed the last 3 tests that were locking up, and reenabled them! The select version segfaulted instead of locking up, which made it easy to find.

Patches are in (top 4 commits)

This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.

List admin:
Received on 2012-08-06