[cl-sockets-devel] Problem with "content-length" and non ascii utf-8 characters in response

Piotr Chamera piotr_chamera at poczta.onet.pl
Wed Oct 27 16:24:32 UTC 2010


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




More information about the cl-soap-devel mailing list