Date: Thu, 9 Apr 2009 08:30:24 +0200
   From: <h...@huebner.org>
   Cc: cmucl-h...@cons.org
   Content-Type: text/plain; charset=ISO-8859-1

   On Thu, Apr 9, 2009 at 08:06, GP lisper <f...@clouddancer.com> wrote:
   >
   > After applying Rays fix for Flexi-Streams, I tried out Drakma-1.0.0
   > under the January snapshot.  It died pretty fast.
   >
   [...]
   >
   > NODELAY in SOCKET-CONNECT is unsupported.
   >   [Condition of type USOCKET:UNSUPPORTED]
   >
   [...]
   >
   > Is there a simple fix to the above, or should I switch to SBCL?
   > I need to get webfetch of a passworded family of webpages working
   > quickly.

   In drakma's request.lisp, near line 459, remove the ":nodelay t"
   option to usocket:socket-connect.

   Let me know if that helps.

Thanks for the quick reply, but there were two errors involved.  There
was an option '0 in the first to ignore the unsupported option on the
socket connect.  Now that I am awake, I see the real problem is in the
Gray Streams.

DRAKMA-USER> (http-request "http://www.sportingnews.com/index.html";)
GET /index.html HTTP/1.1
Host: www.sportingnews.com
User-Agent: Drakma/1.0.0 (CMU Common Lisp rmb-cmucl-19e-JAN-09 (19E);
  Linux; Linux version 2.6.25.20 (r...@stick) (gcc version 4.1.2 (Gentoo
  4.1.2 p1.1)) #4 Sat Dec 13 13:31:02 PST 2008; http://weitz.de/drakma/)
Accept: */*
Connection: close

HTTP/1.1 200 OK
Date: Thu, 09 Apr 2009 16:09:20 GMT
Server: Apache/1.3.33 (Unix) mod_gzip/1.3.26.1a
Set-Cookie:
  
member_data={"original_requestUrl":"http://www.sportingnews.com/index.html","tsn":""};
  path=/; domain=.sportingnews.com
Set-Cookie: SN2=deda848d5df3039690a2fb25d5288a69; expires=Sunday, 09-Apr-34 
22:09:21 GMT; path=/
P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html

#<CHUNGA:CHUNKED-IO-STREAM {58F4C2B5}> is an unsupported Gray stream.
   [Condition of type SIMPLE-TYPE-ERROR]

Restarts:
  0: [ABORT] Return to Top-Level.

Debug  (type H for help)

(LISP::NO-GRAY-STREAMS #<CHUNGA:CHUNKED-IO-STREAM {58F4C2B5}>)
Source: 
; File: target:code/stream.lisp
(ERROR 'SIMPLE-TYPE-ERROR :DATUM STREAM :EXPECTED-TYPE ...)
------------------------------------------------------------

So it dies when the website switches to a compressed stream to reply.

CMUCL has it's own Gray Streams included in the 'extras bundle.  There
are three, 
gray-compat-library.x86f
gray-streams-library.x86f
simple-streams-library.x86f  <-how does this work with the other two anyway?

and then there is the 'trivial-gray-streams-2008-11-02 that Drakma
will load.

How do those various Gray streams interplay?  Or more directly, which
one to utilize?

r

Reply via email to