cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: sws test server with --fork

From: Joe Mason <jmason_at_rim.com>
Date: Wed, 1 Aug 2012 16:14:04 +0000

> From: curl-library [curl-library-bounces_at_cool.haxx.se] on behalf of Daniel
> Stenberg [daniel_at_haxx.se]
>
> > It seems to me that curl needs a lot more tests that exercise the mapping
> > of
> > requests to connections (especially as we start improving pipelining) so
> > it's important for the test server to support multiple connections. So
> > --fork should be well supported by the test suite. But the code is full
> > of
> > comments that say things like, "This is NOT what you wanna do without
> > knowing exactly why and for what," and that --fork is for, "if you feel
> > wild
> > and crazy and want to setup some more exotic tests".
>
> Right. I think I added those comments mostly because of what you already found
> out: that the test suite isn't yet modified to actually work with it. It makes
> the --fork option mostly usable only for custom special tests. I don't think a
> forking http server in particular needs a lof of magic to get working.

My main concern is if the server saves state between successive requests that it makes (including when a connection is closed and it starts listening on the next, in serial). If it forks for each connection then that state wouldn't be shared between the connection handlers. Do you know if that happens?

Joe
---------------------------------------------------------------------
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: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-08-01