From japhy at zenbe.com Sat Aug 9 11:23:15 2008 From: japhy at zenbe.com (Maciej Pasternacki) Date: Sat, 09 Aug 2008 13:23:15 +0200 Subject: [drakma-devel] Query string construction, ALIST-TO-URL-ENCODED-STRING Message-ID: <1218280995.985.32.camel@localhost> Hello all, I use Drakma in my cl-openid project, and I need to construct query string on the fly. I need to pass along the URI objects with the query string, and finally I do not only call HTTP-REQUEST, but also call #'HUNCHENTOOT:REDIRECT on them, or just return those URLs as part of a message. Drakma allows to build query string only directly as part of HTTP-REQUEST, and does not make the functionality available to user. At the moment I use unexported ALIST-TO-URL-ENCODED-STRING, but I'd like to ask if there is any possibility of having ALIST-TO-URL-ENCODED-STRING and URL-ENCODE exported as part of official API? It would be certainly useful, and I think I am not the only one who needs to manipulate URIs and query strings. Regards, Maciej. -- -><- Maciej 'japhy' Pasternacki -><- http://www.pasternacki.net/ -><- From mail at chaitanyagupta.com Thu Aug 14 07:17:11 2008 From: mail at chaitanyagupta.com (Chaitanya Gupta) Date: Thu, 14 Aug 2008 12:47:11 +0530 Subject: [drakma-devel] Problem with USER-AGENT string on ACL8/OS X Message-ID: <48A3DBF7.5090701@chaitanyagupta.com> Hi, These are the request headers that drakma sends when I run HTTP-REQUEST in ACL8 on OS X. GET / HTTP/1.1 Host: localhost User-Agent: #Accept: */* Connection: close The problem is that DRAKMA::USER-AGENT-STRING in this case returns a string with a tilde inside it i.e. "...~1/RELEASE_I386...". Cheers, Chaitanya From edi at agharta.de Tue Aug 19 11:51:09 2008 From: edi at agharta.de (Edi Weitz) Date: Tue, 19 Aug 2008 13:51:09 +0200 Subject: [drakma-devel] Problem with USER-AGENT string on ACL8/OS X In-Reply-To: <48A3DBF7.5090701@chaitanyagupta.com> (Chaitanya Gupta's message of "Thu, 14 Aug 2008 12:47:11 +0530") References: <48A3DBF7.5090701@chaitanyagupta.com> Message-ID: On Thu, 14 Aug 2008 12:47:11 +0530, Chaitanya Gupta wrote: > These are the request headers that drakma sends when I run > HTTP-REQUEST in ACL8 on OS X. > > GET / HTTP/1.1 > Host: localhost > User-Agent: # package>Accept: */* > Connection: close > > The problem is that DRAKMA::USER-AGENT-STRING in this case returns a > string with a tilde inside it i.e. "...~1/RELEASE_I386...". Thanks for catching that, fixed in the dev version now. http://bknr.net/trac/changeset/3729 Edi. From edi at agharta.de Tue Aug 19 11:54:50 2008 From: edi at agharta.de (Edi Weitz) Date: Tue, 19 Aug 2008 13:54:50 +0200 Subject: [drakma-devel] Query string construction, ALIST-TO-URL-ENCODED-STRING In-Reply-To: <1218280995.985.32.camel@localhost> (Maciej Pasternacki's message of "Sat, 09 Aug 2008 13:23:15 +0200") References: <1218280995.985.32.camel@localhost> Message-ID: On Sat, 09 Aug 2008 13:23:15 +0200, Maciej Pasternacki wrote: > I use Drakma in my cl-openid project, and I need to construct query > string on the fly. I need to pass along the URI objects with the > query string, and finally I do not only call HTTP-REQUEST, but also > call #'HUNCHENTOOT:REDIRECT on them, or just return those URLs as > part of a message. Drakma allows to build query string only > directly as part of HTTP-REQUEST, and does not make the > functionality available to user. > > At the moment I use unexported ALIST-TO-URL-ENCODED-STRING, but I'd > like to ask if there is any possibility of having > ALIST-TO-URL-ENCODED-STRING and URL-ENCODE exported as part of > official API? It would be certainly useful, and I think I am not > the only one who needs to manipulate URIs and query strings. Sorry for the delay in replying, I was on vacation. About exporting URL-ENCODE, I'm not sure as it's already exported by Hunchentoot and will lead to conflicts if you use both packages. Exporting the other function is fine with me if you provide a patch against the dev version at bknr.net. http://weitz.de/patches.html Thanks, Edi. From mail at chaitanyagupta.com Tue Aug 19 12:15:18 2008 From: mail at chaitanyagupta.com (Chaitanya Gupta) Date: Tue, 19 Aug 2008 17:45:18 +0530 Subject: [drakma-devel] Problem with USER-AGENT string on ACL8/OS X In-Reply-To: References: <48A3DBF7.5090701@chaitanyagupta.com> Message-ID: <48AAB956.3090300@chaitanyagupta.com> Edi Weitz wrote: > Thanks for catching that, fixed in the dev version now. > > http://bknr.net/trac/changeset/3729 > > Cool. Any idea when the new release will be made? Chaitanya From edi at agharta.de Tue Aug 19 12:46:27 2008 From: edi at agharta.de (Edi Weitz) Date: Tue, 19 Aug 2008 14:46:27 +0200 Subject: [drakma-devel] Problem with USER-AGENT string on ACL8/OS X In-Reply-To: <48AAB956.3090300@chaitanyagupta.com> (Chaitanya Gupta's message of "Tue, 19 Aug 2008 17:45:18 +0530") References: <48A3DBF7.5090701@chaitanyagupta.com> <48AAB956.3090300@chaitanyagupta.com> Message-ID: On Tue, 19 Aug 2008 17:45:18 +0530, Chaitanya Gupta wrote: > Cool. Any idea when the new release will be made? Nope. Depends on the spare time I have. Right now, it's about zero... :( From mail at chaitanyagupta.com Tue Aug 19 18:29:59 2008 From: mail at chaitanyagupta.com (Chaitanya Gupta) Date: Tue, 19 Aug 2008 23:59:59 +0530 Subject: [drakma-devel] ACL can't find WITH-CHARACTER-STREAM-SEMANTICS Message-ID: <48AB1127.1020905@chaitanyagupta.com> Hi, When I try to call HTTP-REQUEST in ACL 8/OS X (using the dev version of DRAKMA), I get the following error/backtrace: attempt to call `DRAKMA::WITH-CHARACTER-STREAM-SEMANTICS' which is an undefined function. [Condition of type UNDEFINED-FUNCTION] Restarts: 0: [TRY-AGAIN] Try calling DRAKMA::WITH-CHARACTER-STREAM-SEMANTICS again. 1: [RETURN-VALUE] Return a value instead of calling DRAKMA::WITH-CHARACTER-STREAM-SEMANTICS. 2: [USE-VALUE] Try calling a function other than DRAKMA::WITH-CHARACTER-STREAM-SEMANTICS. 3: [STORE-VALUE] Setf the symbol-function of DRAKMA::WITH-CHARACTER-STREAM-SEMANTICS and call it again. 4: [ABORT-REQUEST] Abort handling SLIME request. 5: [ABORT] Abort entirely from this (lisp) process. Backtrace: 0: (SWANK::DEBUG-IN-EMACS #) 1: (SWANK:SWANK-DEBUGGER-HOOK # #) 2: (ERROR #) 3: (DRAKMA::WITH-CHARACTER-STREAM-SEMANTICS #(60 104 116 109 108 62 60 104 101 97 ...)) 4: ((LABELS DRAKMA:HTTP-REQUEST DRAKMA::FINISH-REQUEST) NIL) 5: (DRAKMA:HTTP-REQUEST # :REDIRECT 4 :STREAM NIL :ADDITIONAL-HEADERS NIL) 6: ((LABELS DRAKMA:HTTP-REQUEST DRAKMA::FINISH-REQUEST) NIL) 7: (DRAKMA:HTTP-REQUEST "http://www.google.com") Couldn't locate the definition of WITH-CHARACTER-STREAM-SEMANTICS anywhere in the drakma source code. Am I missing some dependency? Chaitanya From edi at agharta.de Tue Aug 19 18:48:38 2008 From: edi at agharta.de (Edi Weitz) Date: Tue, 19 Aug 2008 20:48:38 +0200 Subject: [drakma-devel] ACL can't find WITH-CHARACTER-STREAM-SEMANTICS In-Reply-To: <48AB1127.1020905@chaitanyagupta.com> (Chaitanya Gupta's message of "Tue, 19 Aug 2008 23:59:59 +0530") References: <48AB1127.1020905@chaitanyagupta.com> Message-ID: On Tue, 19 Aug 2008 23:59:59 +0530, Chaitanya Gupta wrote: > Am I missing some dependency? If you want to work with the dev version, you'll need to grab all the other libs (at least Chunga in the case of Drakma) from the dev repository as well. There's a convenience link which assembles all of them here: http://bknr.net/trac/browser/ediware Note that some of these dev versions are in flux and not properly documented, especially Hunchentoot. Subscribe to the corresponding mailing lists if in doubt. Edi. From mail at chaitanyagupta.com Tue Aug 19 19:12:21 2008 From: mail at chaitanyagupta.com (Chaitanya Gupta) Date: Wed, 20 Aug 2008 00:42:21 +0530 Subject: [drakma-devel] ACL can't find WITH-CHARACTER-STREAM-SEMANTICS In-Reply-To: References: <48AB1127.1020905@chaitanyagupta.com> Message-ID: <48AB1B15.1010800@chaitanyagupta.com> Edi Weitz wrote: > If you want to work with the dev version, you'll need to grab all the > other libs (at least Chunga in the case of Drakma) from the dev > repository as well. Yeah, just realized that. Thanks. A slight concern I have with the dev versions of hunchentoot, drakma, etc. -- besides your libraries, the bknr-svn repo also has its own branch of libraries like usocket. Are the changes to this branch also being backported to the main usocket branch? (or, when the new version of hunchentoot is released, will it work with a release version of usocket?) Chaitanya From edi at agharta.de Tue Aug 19 21:36:34 2008 From: edi at agharta.de (Edi Weitz) Date: Tue, 19 Aug 2008 23:36:34 +0200 Subject: [drakma-devel] ACL can't find WITH-CHARACTER-STREAM-SEMANTICS In-Reply-To: <48AB1B15.1010800@chaitanyagupta.com> (Chaitanya Gupta's message of "Wed, 20 Aug 2008 00:42:21 +0530") References: <48AB1127.1020905@chaitanyagupta.com> <48AB1B15.1010800@chaitanyagupta.com> Message-ID: On Wed, 20 Aug 2008 00:42:21 +0530, Chaitanya Gupta wrote: > A slight concern I have with the dev versions of hunchentoot, > drakma, etc. -- besides your libraries, the bknr-svn repo also has > its own branch of libraries like usocket. Are the changes to this > branch also being backported to the main usocket branch? (or, when > the new version of hunchentoot is released, will it work with a > release version of usocket?) I /think/ the answer is yes, but I'm not sure. You'll have to ask Hans - AFAIK he has commit bits for usocket. I don't know if he's reading this list, but he's on the Hunchentoot list (although he's currently on vacation). Edi. From ehuels at gmail.com Wed Aug 20 20:11:46 2008 From: ehuels at gmail.com (Erik Huelsmann) Date: Wed, 20 Aug 2008 22:11:46 +0200 Subject: [drakma-devel] ACL can't find WITH-CHARACTER-STREAM-SEMANTICS In-Reply-To: References: <48AB1127.1020905@chaitanyagupta.com> <48AB1B15.1010800@chaitanyagupta.com> Message-ID: On Tue, Aug 19, 2008 at 11:36 PM, Edi Weitz wrote: > On Wed, 20 Aug 2008 00:42:21 +0530, Chaitanya Gupta wrote: > >> A slight concern I have with the dev versions of hunchentoot, >> drakma, etc. -- besides your libraries, the bknr-svn repo also has >> its own branch of libraries like usocket. Are the changes to this >> branch also being backported to the main usocket branch? (or, when >> the new version of hunchentoot is released, will it work with a >> release version of usocket?) > > I /think/ the answer is yes, but I'm not sure. You'll have to ask > Hans - AFAIK he has commit bits for usocket. I don't know if he's > reading this list, but he's on the Hunchentoot list (although he's > currently on vacation). I - the other usocket maintainer - can confirm that Hans and I are working through some remaining issues wrt usocket and Hunchentoot. As soon as those are resolved, I intend to create a new usocket release. I think Hans will do the same for Hunchentoot. Bye, Erik From mail at chaitanyagupta.com Thu Aug 21 11:25:08 2008 From: mail at chaitanyagupta.com (Chaitanya Gupta) Date: Thu, 21 Aug 2008 16:55:08 +0530 Subject: [drakma-devel] ACL can't find WITH-CHARACTER-STREAM-SEMANTICS In-Reply-To: References: <48AB1127.1020905@chaitanyagupta.com> <48AB1B15.1010800@chaitanyagupta.com> Message-ID: <48AD5094.8010206@chaitanyagupta.com> Erik Huelsmann wrote: > I - the other usocket maintainer - can confirm that Hans and I are > working through some remaining issues wrt usocket and Hunchentoot. As > soon as those are resolved, I intend to create a new usocket release. > I think Hans will do the same for Hunchentoot. > > Cool. I guess I don't need to ask on the hunchentoot mailing list then. Cheers, Chaitanya From stassats at gmail.com Mon Aug 25 12:52:03 2008 From: stassats at gmail.com (Stas Boukarev) Date: Mon, 25 Aug 2008 16:52:03 +0400 Subject: [drakma-devel] :close nil Message-ID: <9f0fec110808250552q2d6d9697qe9101b4916394137@mail.gmail.com> When I call http-request with :close nil argument it takes 6 seconds more: CL-USER> (time (drakma:http-request "http://192.168.1.2/")) Evaluation took: 0.013 seconds of real time 0.008001 seconds of total run time (0.008001 user, 0.000000 system) 61.54% CPU 17,442,126 processor cycles 233,168 bytes consed "..." 200 ((:CONNECTION . "close") (:CONTENT-LENGTH . "917") (:CONTENT-TYPE . "text/html; charset=utf-8") (:DATE . "Mon, 25 Aug 2008 12:46:20 GMT") (:SERVER . "Hunchentoot 0.15.7")) # # T "OK" CL-USER> (time (drakma:http-request "http://192.168.1.2/" :close nil)) Evaluation took: 6.428 seconds of real time 0.488030 seconds of total run time (0.400025 user, 0.088005 system) [ Run times consist of 0.240 seconds GC time, and 0.249 seconds non-GC time. ] 7.59% CPU 212 lambdas converted 994,309,191 processor cycles 18,388,176 bytes consed "..." 200 ((:CONTENT-LENGTH . "917") (:CONTENT-TYPE . "text/html; charset=utf-8") (:DATE . "Mon, 25 Aug 2008 12:46:04 GMT") (:SERVER . "Hunchentoot 0.15.7")) # # NIL "OK" Drakma and all dependancies are latest, tested with SBCL and CCL, and different web servers. -- With Best Regards, Stas. From edi at agharta.de Tue Aug 26 00:41:43 2008 From: edi at agharta.de (Edi Weitz) Date: Mon, 25 Aug 2008 20:41:43 -0400 Subject: [drakma-devel] :close nil In-Reply-To: <9f0fec110808250552q2d6d9697qe9101b4916394137@mail.gmail.com> (Stas Boukarev's message of "Mon, 25 Aug 2008 16:52:03 +0400") References: <9f0fec110808250552q2d6d9697qe9101b4916394137@mail.gmail.com> Message-ID: On Mon, 25 Aug 2008 16:52:03 +0400, "Stas Boukarev" wrote: > When I call http-request with :close nil argument it takes 6 seconds > more Please try with FLEXI-STREAMS 1.0.6, that should hopefully fix this. Thanks for the report, Edi. From stassats at gmail.com Tue Aug 26 05:28:04 2008 From: stassats at gmail.com (Stas Boukarev) Date: Tue, 26 Aug 2008 09:28:04 +0400 Subject: [drakma-devel] :close nil In-Reply-To: References: <9f0fec110808250552q2d6d9697qe9101b4916394137@mail.gmail.com> Message-ID: <9f0fec110808252228n26a29bffl78da62264118f36e@mail.gmail.com> On 8/26/08, Edi Weitz wrote: > On Mon, 25 Aug 2008 16:52:03 +0400, "Stas Boukarev" wrote: > > > When I call http-request with :close nil argument it takes 6 seconds > > more > > > Please try with FLEXI-STREAMS 1.0.6, that should hopefully fix this. It still spends 6 second in FLEXI-STREAMS::READ-SEQUENCE* -- With Best Regards, Stas. From edi at agharta.de Tue Aug 26 13:14:07 2008 From: edi at agharta.de (Edi Weitz) Date: Tue, 26 Aug 2008 09:14:07 -0400 Subject: [drakma-devel] :close nil In-Reply-To: <9f0fec110808252228n26a29bffl78da62264118f36e@mail.gmail.com> (Stas Boukarev's message of "Tue, 26 Aug 2008 09:28:04 +0400") References: <9f0fec110808250552q2d6d9697qe9101b4916394137@mail.gmail.com> <9f0fec110808252228n26a29bffl78da62264118f36e@mail.gmail.com> Message-ID: On Tue, 26 Aug 2008 09:28:04 +0400, "Stas Boukarev" wrote: > It still spends 6 second in FLEXI-STREAMS::READ-SEQUENCE* Seems there was another thinko in FLEXI-STREAMS. Could you try with 1.0.7 again? Thanks, Edi. From stassats at gmail.com Tue Aug 26 13:24:28 2008 From: stassats at gmail.com (Stas Boukarev) Date: Tue, 26 Aug 2008 17:24:28 +0400 Subject: [drakma-devel] :close nil In-Reply-To: References: <9f0fec110808250552q2d6d9697qe9101b4916394137@mail.gmail.com> <9f0fec110808252228n26a29bffl78da62264118f36e@mail.gmail.com> Message-ID: <9f0fec110808260624i4445f83ey79ebf77168ce190f@mail.gmail.com> On 8/26/08, Edi Weitz wrote: > On Tue, 26 Aug 2008 09:28:04 +0400, "Stas Boukarev" wrote: > > > It still spends 6 second in FLEXI-STREAMS::READ-SEQUENCE* > > > Seems there was another thinko in FLEXI-STREAMS. Could you try with > 1.0.7 again? Still the same... I also noticed that it's fast if it encounters 404 error. -- With Best Regards, Stas. From edi at agharta.de Tue Aug 26 13:34:40 2008 From: edi at agharta.de (Edi Weitz) Date: Tue, 26 Aug 2008 09:34:40 -0400 Subject: [drakma-devel] :close nil In-Reply-To: <9f0fec110808260624i4445f83ey79ebf77168ce190f@mail.gmail.com> (Stas Boukarev's message of "Tue, 26 Aug 2008 17:24:28 +0400") References: <9f0fec110808250552q2d6d9697qe9101b4916394137@mail.gmail.com> <9f0fec110808252228n26a29bffl78da62264118f36e@mail.gmail.com> <9f0fec110808260624i4445f83ey79ebf77168ce190f@mail.gmail.com> Message-ID: On Tue, 26 Aug 2008 17:24:28 +0400, "Stas Boukarev" 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 " " 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")) # # 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 "
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

" 200 ((:DATE . "Tue, 26 Aug 2008 13:32:53 GMT") (:SERVER . "Apache") (:TRANSFER-ENCODING . "chunked") (:CONTENT-TYPE . "text/html; charset=iso-8859-1")) # # NIL "OK" From stassats at gmail.com Tue Aug 26 14:00:43 2008 From: stassats at gmail.com (Stas Boukarev) Date: Tue, 26 Aug 2008 18:00:43 +0400 Subject: [drakma-devel] :close nil In-Reply-To: References: <9f0fec110808250552q2d6d9697qe9101b4916394137@mail.gmail.com> <9f0fec110808252228n26a29bffl78da62264118f36e@mail.gmail.com> <9f0fec110808260624i4445f83ey79ebf77168ce190f@mail.gmail.com> Message-ID: <9f0fec110808260700h789c0fees7b0c739336facfdd@mail.gmail.com> On 8/26/08, Edi Weitz wrote: > On Tue, 26 Aug 2008 17:24:28 +0400, "Stas Boukarev" 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? > It seems that it's only slow with hunchentoot, but with lighttpd and other servers (and with your testcases) it's now ok. http://stassats.dyndns.org/ where hunchentoot is running -- With Best Regards, Stas. From edi at agharta.de Wed Aug 27 10:16:53 2008 From: edi at agharta.de (Edi Weitz) Date: Wed, 27 Aug 2008 06:16:53 -0400 Subject: [drakma-devel] :close nil In-Reply-To: <9f0fec110808260700h789c0fees7b0c739336facfdd@mail.gmail.com> (Stas Boukarev's message of "Tue, 26 Aug 2008 18:00:43 +0400") References: <9f0fec110808250552q2d6d9697qe9101b4916394137@mail.gmail.com> <9f0fec110808252228n26a29bffl78da62264118f36e@mail.gmail.com> <9f0fec110808260624i4445f83ey79ebf77168ce190f@mail.gmail.com> <9f0fec110808260700h789c0fees7b0c739336facfdd@mail.gmail.com> Message-ID: On Tue, 26 Aug 2008 18:00:43 +0400, "Stas Boukarev" wrote: > It seems that it's only slow with hunchentoot, but with lighttpd and > other servers (and with your testcases) it's now ok. I found something in Drakma which doesn't work with the recent changes to FLEXI-STREAMS. I've fixed the dev version here http://bknr.net/trac/changeset/3742/trunk/thirdparty/drakma but the patch should also work for the released version. > http://stassats.dyndns.org/ where hunchentoot is running I get 503 - service not available. I don't think this is related to Hunchentoot, though. Cheers, Edi. From ndj at hivsa.com Wed Aug 27 11:29:24 2008 From: ndj at hivsa.com (Nico de Jager) Date: Wed, 27 Aug 2008 13:29:24 +0200 Subject: [drakma-devel] :close nil In-Reply-To: (Edi Weitz's message of "Wed, 27 Aug 2008 06:16:53 -0400") References: <9f0fec110808250552q2d6d9697qe9101b4916394137@mail.gmail.com> <9f0fec110808252228n26a29bffl78da62264118f36e@mail.gmail.com> <9f0fec110808260624i4445f83ey79ebf77168ce190f@mail.gmail.com> <9f0fec110808260700h789c0fees7b0c739336facfdd@mail.gmail.com> Message-ID: <8763pmd7cb.fsf@davinci.hivsa.com> Hi Edi Edi Weitz writes: > I found something in Drakma which doesn't work with the recent changes > to FLEXI-STREAMS. I've fixed the dev version here > > http://bknr.net/trac/changeset/3742/trunk/thirdparty/drakma > > but the patch should also work for the released version. Does this mean the stable version (of Drakma) located on weitz.de is broken with the current version of FLEXI-STREAMS? If so, do you perhaps know the version no. of the last stable version that won't break it (but also won't break Hunchentoot). Many thanks. Nico BTW, I am using several of your libraries in a couple of busy donor funded pediatric and perinatal HIV clinics in South Africa. From edi at agharta.de Wed Aug 27 11:43:47 2008 From: edi at agharta.de (Edi Weitz) Date: Wed, 27 Aug 2008 07:43:47 -0400 Subject: [drakma-devel] :close nil In-Reply-To: <8763pmd7cb.fsf@davinci.hivsa.com> (Nico de Jager's message of "Wed, 27 Aug 2008 13:29:24 +0200") References: <9f0fec110808250552q2d6d9697qe9101b4916394137@mail.gmail.com> <9f0fec110808252228n26a29bffl78da62264118f36e@mail.gmail.com> <9f0fec110808260624i4445f83ey79ebf77168ce190f@mail.gmail.com> <9f0fec110808260700h789c0fees7b0c739336facfdd@mail.gmail.com> <8763pmd7cb.fsf@davinci.hivsa.com> Message-ID: On Wed, 27 Aug 2008 13:29:24 +0200, Nico de Jager wrote: > Does this mean the stable version (of Drakma) located on weitz.de is > broken with the current version of FLEXI-STREAMS? It seems so, although you'll only see the bug under certain circumstances. Specifically, if a) you explicitly insist on the stream not being closed, b) the server provides the content length of the reply, c) the content type is text, and d) the encoding is UTF-8 or some other encoding where there length of the text can't be easily computed from the number of the octets. (And I wouldn't dare to say that other versions or combinations are /not/ broken. They'll just have bugs that nobody found yet... :) > If so, do you perhaps know the version no. of the last stable > version that won't break it (but also won't break Hunchentoot). I haven't checked, sorry. Maybe 0.14.0 and earlier. > BTW, I am using several of your libraries in a couple of busy donor > funded pediatric and perinatal HIV clinics in South Africa. That's good to know, thanks. Maybe you can send me some more details (maybe in private email)? From stassats at gmail.com Wed Aug 27 13:17:13 2008 From: stassats at gmail.com (Stas Boukarev) Date: Wed, 27 Aug 2008 17:17:13 +0400 Subject: [drakma-devel] :close nil In-Reply-To: References: <9f0fec110808250552q2d6d9697qe9101b4916394137@mail.gmail.com> <9f0fec110808252228n26a29bffl78da62264118f36e@mail.gmail.com> <9f0fec110808260624i4445f83ey79ebf77168ce190f@mail.gmail.com> <9f0fec110808260700h789c0fees7b0c739336facfdd@mail.gmail.com> Message-ID: <9f0fec110808270617i2512db38q9b6f1198fc72db14@mail.gmail.com> On 8/27/08, Edi Weitz wrote: > On Tue, 26 Aug 2008 18:00:43 +0400, "Stas Boukarev" wrote: > > > It seems that it's only slow with hunchentoot, but with lighttpd and > > other servers (and with your testcases) it's now ok. > > > I found something in Drakma which doesn't work with the recent changes > to FLEXI-STREAMS. I've fixed the dev version here > > http://bknr.net/trac/changeset/3742/trunk/thirdparty/drakma > > but the patch should also work for the released version. I tested that patch and it works, thanks! -- With Best Regards, Stas.