On Tue, 26 Aug 2008 17:24:28 +0400, "Stas Boukarev" stassats@gmail.com wrote:
Still the same... I also noticed that it's fast if it encounters 404 error.
So, now I can't reproduce it anymore. See below - one is chunked, the other not. One is UTF-8, the other one LATIN-1.
Would you have a more specific test case, preferably with a public URL?
Thanks, Edi.
CL-USER 3 > (time (drakma:http-request "http://miles.agharta.de/" :close nil)) Timing the evaluation of (DRAKMA:HTTP-REQUEST "http://miles.agharta.de/" :CLOSE NIL)
User time = 0.000 System time = 0.000 Elapsed time = 0.281 Allocation = 30920 bytes 0 Page faults "<html> <head> <meta http-equiv="refresh" content="0;url=http://weitz.de/%5C%22%3E </head> <body> </body> </html> " 200 ((:DATE . "Tue, 26 Aug 2008 13:32:45 GMT") (:SERVER . "Apache") (:X-POWERED-BY . "PHP/5.2.5-2") (:CONTENT-LENGTH . "118") (:CONTENT-TYPE . "text/html; charset=utf-8")) #<PURI:URI http://miles.agharta.de%3E #<FLEXI-STREAMS:FLEXI-IO-STREAM 22194D5F> NIL "OK"
CL-USER 4 > (time (drakma:http-request "http://zappa.agharta.de/" :close nil)) Timing the evaluation of (DRAKMA:HTTP-REQUEST "http://zappa.agharta.de/" :CLOSE NIL)
User time = 0.000 System time = 0.000 Elapsed time = 0.328 Allocation = 61892 bytes 0 Page faults "<HTML> <HEAD> <META HTTP-EQUIV="refresh" CONTENT="5;URL=http://www.weitz.de/%5C%22%3E </HEAD> <BODY><center> <table border=3 bordercolor=green cellpadding=5 cellspacing=5><tr><td align=center> <pre> Linux zappa 2.4.20-bf2.4 #1 Wed Dec 25 13:17:08 UTC 2002 i686 GNU/Linux
15:32:53 up 302 days, 8:07, 0 users, load average: 0.05, 0.03, 0.00
</pre> </td></tr></table></center>
</BODY> </HTML>
" 200 ((:DATE . "Tue, 26 Aug 2008 13:32:53 GMT") (:SERVER . "Apache") (:TRANSFER-ENCODING . "chunked") (:CONTENT-TYPE . "text/html; charset=iso-8859-1")) #<PURI:URI http://zappa.agharta.de%3E #<FLEXI-STREAMS:FLEXI-IO-STREAM 2008AC77> NIL "OK"