chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] questionable http-server behaviour under heavyload:


From: Felix Winkelmann
Subject: Re: [Chicken-users] questionable http-server behaviour under heavyload: broken pipe
Date: Thu, 26 Aug 2004 08:15:45 +0200
User-agent: Mozilla Thunderbird 0.5 (X11/20040208)

gian paolo ciceri wrote:

mmmh. I've tried to use spiffy in some manner,
but with no fortune... see the following output
(I've asked for http://localhost:8080/)

address@hidden spiffy]$ spiffy -d
[waiting for requests...]
[request 0 from 127.0.0.1; thread0 (of 1) started...]
[read: "GET / HTTP/1.1"]
[request: method=GET, url=/, protocol=HTTP/1.1]
[attributes: (("cookie" . "PASSWORD=U39ufwlvhLw=;
ID=aWiPXVmk2ms0Iq8dFs+pAw==;
ad_user_login=17!1184660306937!7JqnxcsaUlSW/yNzz1+6Rw==; tz_offset=3600;
address@hidden; loginkey=24ff5c3fba7903f106b3f7b98b1d5170;
user=gpciceri; style=null") ("connection" . "keep-alive") ("keep-alive"
. "300") ("accept-charset" . "ISO-8859-1,utf-8;q=0.7,*;q=0.7")
("accept-encoding" . "gzip,deflate") ("accept-language" .
"it,en-us;q=0.7,en;q=0.3") ("accept" .
"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5")
("user-agent" . "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7)
Gecko/20040808 Firefox/0.9.3") ("host" . "localhost:8080"))]
[handling GET request...]
thread thread0 terminated with exception: can not write to socket: (4 "\n")

----

What's happening here ?
After this request I'm not able to terminate spiffy with CTRL+C,
I've to put the server in background and kill it esplicitely.


And it doesn't respond anymore to subsequent requests?

This message indicates that the remote connection was closed (perhaps
Spiffy outputs a newline too much). But normally, even though the
thread dies, the server should continue to work as normal. That Ctrl-C
doesn't work isn't entirely clear to me, but happens to me as well.

(BTW, Now I realize that I misunderstood your previous mail. Spiffy
handles the signal, but not http-server, so perhaps adding that
invocation to `set-signal-handler!' in your code might work).


cheers,
felix




reply via email to

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