chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] http-server dies unexpectedly?


From: felix winkelmann
Subject: Re: [Chicken-users] http-server dies unexpectedly?
Date: Wed, 30 Mar 2005 00:05:14 +0200

On Mon, 28 Mar 2005 11:42:58 -0500, Graham Fawcett
<address@hidden> wrote:
> Greetings,
> 
> I ran the example "hello, world" http-server from the http egg page,
> and hit it with apachebench just to get a sense of general
> performance. When running 'ab' with concurrent connections, and a
> moderate number of requests, e.g.
> 
>     ab -c 2 -n 100 http://localhost:4242/
> 
> the http-server fulfills all of the requests with no errors
> (ChickenRulesOK!). However, when 'ab' terminates, the server process
> exits, with no error message.  This happened whether I ran the example
> as a script (csi -script) or compiled via csc, and whether or not
> debugging output was requested when starting the server.

The http egg doesn't handle SIGPIPE (spiffy, the web-server does), so just
add:

(use posix)

(set-signal-handler! signal/pipe #f)

to your code.

(This should be documented in the http egg, sorry)


cheers,
felix




reply via email to

[Prev in Thread] Current Thread [Next in Thread]