From quasilists at gmail.com Mon Jan 23 14:16:27 2006 From: quasilists at gmail.com (quasi) Date: Mon, 23 Jan 2006 19:46:27 +0530 Subject: [cl-soap-devel] Re: s-http-client problem In-Reply-To: <438e11130601230614u5380d7e9h85db877d203dd294@mail.gmail.com> References: <438e11130601230614u5380d7e9h85db877d203dd294@mail.gmail.com> Message-ID: <438e11130601230616o336c0724q6b47fbc47941e83b@mail.gmail.com> oops, I forgot to mention I am using SBCL 9.8 on Debian/x86 On 1/23/06, quasi wrote: > folks, > > s-http-client does not have a mailing list, so I am writing here. Sorry. > > trying the simple example (s-http-client:do-http-request any-url) > results in a restart > > The value of "Execute body with the process lock grabbed, wait otherwise" > is not of type > (OR STREAM (MEMBER T NIL)) > > what to do ? > > > thanks > From quasilists at gmail.com Mon Jan 23 14:14:04 2006 From: quasilists at gmail.com (quasi) Date: Mon, 23 Jan 2006 19:44:04 +0530 Subject: [cl-soap-devel] s-http-client problem Message-ID: <438e11130601230614u5380d7e9h85db877d203dd294@mail.gmail.com> folks, s-http-client does not have a mailing list, so I am writing here. Sorry. trying the simple example (s-http-client:do-http-request any-url) results in a restart The value of "Execute body with the process lock grabbed, wait otherwise" is not of type (OR STREAM (MEMBER T NIL)) what to do ? thanks From scaekenberghe at common-lisp.net Mon Jan 23 14:46:58 2006 From: scaekenberghe at common-lisp.net (Sven Van Caekenberghe) Date: Mon, 23 Jan 2006 15:46:58 +0100 Subject: [cl-soap-devel] Re: s-http-client problem In-Reply-To: <438e11130601230616o336c0724q6b47fbc47941e83b@mail.gmail.com> References: <438e11130601230614u5380d7e9h85db877d203dd294@mail.gmail.com> <438e11130601230616o336c0724q6b47fbc47941e83b@mail.gmail.com> Message-ID: <9DB18E16-9437-40CE-B0D0-06933D2BCD64@common-lisp.net> On 23 Jan 2006, at 15:16, quasi wrote: > oops, I forgot to mention I am using SBCL 9.8 on Debian/x86 > > On 1/23/06, quasi wrote: >> folks, >> >> s-http-client does not have a mailing list, so I am writing here. >> Sorry. >> >> trying the simple example (s-http-client:do-http-request any-url) >> results in a restart >> >> The value of "Execute body with the process lock grabbed, wait >> otherwise" >> is not of type >> (OR STREAM (MEMBER T NIL)) >> >> what to do ? I think you should make sure that you have the latest version of S- SYSDEPS. On Mac OS X (where SBCL has *no* multithreading support): CL-USER> (lisp-implementation-type) "SBCL" CL-USER> (lisp-implementation-version) "0.9.7" CL-USER> (asdf :s-http-client) ;; Executing (ASDF:OPERATE 'ASDF:LOAD-OP :S-HTTP-CLIENT) [...] CL-USER> (s-http-client:do-http-request "http://homepage.mac.com/svc/ s-http-client/foo.html") " Foo

Foo

Just a test page.

" 200 ((:DATE . "Mon, 23 Jan 2006 14:43:21 GMT") (:CONTENT-LENGTH . "100") (:CONTENT-TYPE . "text/html") (:CACHE-CONTROL . "public") (:X-RESPONDING-SERVER . "davhp06") (:SERVER . "AppleDotMacServer") (:ETAG . "u-1g3s18hn-9aip-qjfyi23or-8h3m9zcr20") (:LAST-MODIFIED . "Sat, 07 Jan 2006 09:39:40 GMT") (:VIA . "1.1 netcache01 (NetCache NetApp/5.5R6)")) # :NEW On other SBCL platforms there *is* multi-threading support (and locks and stuff). I haven't actually tested there though. HTH, Sven -- Sven Van Caekenberghe - http://homepage.mac.com/svc Beta Nine - software engineering - http://www.beta9.be "Lisp isn't a language, it's a building material." - Alan Kay From scaekenberghe at common-lisp.net Tue Jan 24 12:14:16 2006 From: scaekenberghe at common-lisp.net (Sven Van Caekenberghe) Date: Tue, 24 Jan 2006 13:14:16 +0100 Subject: [cl-soap-devel] Re: s-http-client problem In-Reply-To: <438e11130601240343n50ec2264td68c555d851f614b@mail.gmail.com> References: <438e11130601230614u5380d7e9h85db877d203dd294@mail.gmail.com> <438e11130601230616o336c0724q6b47fbc47941e83b@mail.gmail.com> <9DB18E16-9437-40CE-B0D0-06933D2BCD64@common-lisp.net> <438e11130601240343n50ec2264td68c555d851f614b@mail.gmail.com> Message-ID: <2A499A8F-1A9A-413E-895A-3E10719EF2B4@common-lisp.net> On 24 Jan 2006, at 12:43, quasi wrote: > On 1/23/06, Sven Van Caekenberghe > wrote: >> >> I think you should make sure that you have the latest version of S- >> SYSDEPS. > > yep. I do. I updated all the dependencies. > >> >> On other SBCL platforms there *is* multi-threading support (and locks >> and stuff). I haven't actually tested there though. > > I am running SBCL 9.8 on debian/x86. & it does give me the error. > > the backtrace shows that in do-http-request-internal the connection > variable is the one with the string "Execute ...". connection is > bound using multiple-value-bind over get-open-connection. > > Digging further I find that the erronous message is actually the doc > string of the macro with-process-lock in sysdeps.lisp .. :) As I am > extremely new to this debugging in Lisp (first time actually) I can > go no further and I dont know what to make of all this ... > > I would be extremely happy to read any explaination you have. Also > any further pointers on the learning road would be nice :) ;; working with process locks (defun make-process-lock (name) "Create a named process lock object" #+lispworks (mp:make-lock :name name) #+abcl (ext:make-thread-lock) #+openmcl (ccl:make-lock name) #+allegro (mp:make-process-lock :name name) #+sb-thread (sb-thread:make-mutex :name name) #-(or lispworks abcl openmcl allegro sb-thread) nil) (defmacro with-process-lock ((lock) &body body) "Execute body wih the process lock grabbed, wait otherwise" ;; maybe it is safer to always use a timeout: ;; `(mp:with-lock (,lock (format nil "Waiting for ~s" (lock- name ,lock)) 5) , at body) ;; if the lock cannot be claimed in 5s, nil is returned: test it and throw a condition ? #+lispworks `(mp:with-lock (,lock) , at body) #+abcl `(ext:with-thread-lock (,lock) , at body) #+openmcl `(ccl:with-lock-grabbed (,lock) , at body) #+allegro `(mp:with-process-lock (,lock) , at body) #+sb-thread `(sb-thread:with-recursive-lock (,lock) , at body) #-(or lispworks abcl openmcl allegro sb-thread) `(progn , at body)) Above is the latest code from s-sydeps's darcs repository and from the released tarball tgz. Normally, :sb-thread should be on your *features* list, if not the process lock object would be nil and the with-process-lock macro will do nothing. As I said before, there was a brief period some time ago when a faulty version of the above code for SBCL was committed that led to the problems you mentioned. Please make sure you have the right versions of the code, and otherwise please send a full stacktrace. Sven From root at common-lisp.net Mon Jan 30 08:15:11 2006 From: root at common-lisp.net (root) Date: Mon, 30 Jan 2006 02:15:11 -0600 (CST) Subject: [cl-sockets-devel] Auto-nag: cl-soap link verifier failed Message-ID: <20060130081511.1FC80511C@common-lisp.net> You are being nagged on because your project's name showed up in the nightly Checkbot run. Checkbot checks for broken links etc. This probably means that you are either pointing to a broken link or that someone is pointing to a broken link on your site. Or something else, it check's a bunch of stuff. Update your webpages or you shall be nagged again next week. To find out what's wrong with your webpages, please consult: http://common-lisp.net/checkbot/checkbot-common-lisp.net.html Any questions? You got this email but your webpage doesn't seem to be listed on the checkbot webpage? You can reach the author of this cronjob at clo-devel at common-lisp.net Thanks!