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: gian paolo ciceri
Subject: Re: [Chicken-users] questionable http-server behaviour under heavyload: broken pipe
Date: Thu, 26 Aug 2004 08:39:46 +0200
User-agent: Mozilla Thunderbird 0.6 (X11/20040519)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Felix Winkelmann wrote:
[SNIP]
| And it doesn't respond anymore to subsequent requests?
|

Thanks for the quick feedback,
it responds like in the first request, but with no
exception, that happens only after the first request.

[request 0 from 127.0.0.1; thread1 (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...]
[thread1 (of 1) kept alive, reading next request...]
[client closed connection.]
[closing connection...]
[thread1 finished.]


| 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).

Well, my code is the standard http-server sample (in documentation),
may you please be so kind to show me where to add the signal
handler ?


For spiffy, I've not fully explained myself:
in my spiffy setup, I've the ./web directory under the place where I
start spiffy, but I cannot have the index.html served, too !.


address@hidden spiffy]$ spiffy -d -r ./web
[waiting for requests...]
[request 0 from 127.0.0.1; thread0 (of 1) started...]
[read: "GET /index.html HTTP/1.1"]
[request: method=GET, url=/index.html, 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...]
[thread0 (of 1) kept alive, reading next request...]
[client closed connection.]
[closing connection...]
[thread0 finished.]

while asking http://localhost:8080/index.html from the browser (404 Not
Found)

and I've ./web/index.html sample file in place.

Regards
/gp

|
|
| cheers,
| felix


- --
gian paolo ciceri - japanman
suddenthinks, excellence through refactoring
++39 340 7218101
address@hidden
address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFBLYWy5CXmEF0gaHgRAvA5AKDHjhzyZ9Au8079MJ4SZtnmpVdZiACgtWG7
Qvy6gcntOGlrRaBz23iwiZ4=
=ryQ7
-----END PGP SIGNATURE-----




reply via email to

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