From piotr_chamera at poczta.onet.pl Wed Oct 27 16:24:32 2010 From: piotr_chamera at poczta.onet.pl (Piotr Chamera) Date: Wed, 27 Oct 2010 18:24:32 +0200 Subject: [cl-sockets-devel] Problem with "content-length" and non ascii utf-8 characters in response Message-ID: <4CC85240.9050601@poczta.onet.pl> Hi, I spotted problem when using cl-soap - some requests take long time to finish (few minuts), when others return normally. In both cases final response seems ok. I am beginner lisper, so I my be wrong in my thinking, but I found that problem occurs when response contains utf-8 characters not in ascii range. I think the problem is that "content-length" of response is counted in bytes but (cl-soap:open-socket-stream ...) creates stream with :element-type 'character and (response-read-body ...) is reading and counting in characters. When there are multibyte characters in stream, then number of characters in stream is always smaller than content-lengtch and procedure is waiting for additional characters until connection reset (or something). Can somebody confirm or reject my reasoning. How can it be fixed? -- pozdrawiam Piotr Chamera