Has anybody seen a behavior in which read-status-line signals a syntax-error, and it turns out that the value of "line" looks like an HTTP request line rather than an HTTP status (response) line? The following is the stack trace.
From my old C++ days (may they never return), I conjectured that some string buffer is being reused or something like that.; We are running on CCL (formerly openmcl), and nothing like that is going on at the CCL level.; I don't know much about flexi-streams or gray-streams. Anyway that's just a rather wild guess. Thanks!
<READ-STATUS-LINE at pc +669 Arguments: (STREAM &OPTIONAL DRAKMA::LOG-STREAM) STREAM: <FLEXI-STREAMS:FLEXI-IO-STREAM #x30200938EB3D> DRAKMA::LOG-STREAM: NIL Local bindings: CHUNGA:CURRENT-ERROR-MESSAGE "While reading status line:"" DRAKMA::LINE: ""POST /stat/ping HTTP/1.1"" DRAKMA::FIRST-SPACE-POS: 4 DRAKMA::SECOND-SPACE-POS: 15
Thanks!
- Dan
On 3/17/2011 11:30 AM, Daniel Weinreb wrote:
Has anybody seen a behavior in which read-status-line signals a syntax-error, and it turns out that the value of "line" looks like an HTTP request line rather than an HTTP status (response) line? The following is the stack trace.
I had a similar problem, and I concluded it was the server sending back a very malformed response. Did you validate the server's response outside of drakma?
HTH, Ryan
From my old C++ days (may they never return), I conjectured that some string buffer is being reused or something like that.; We are running on CCL (formerly openmcl), and nothing like that is going on at the CCL level.; I don't know much about flexi-streams or gray-streams. Anyway that's just a rather wild guess. Thanks!
<READ-STATUS-LINE at pc +669 Arguments: (STREAM &OPTIONAL DRAKMA::LOG-STREAM) STREAM: <FLEXI-STREAMS:FLEXI-IO-STREAM #x30200938EB3D> DRAKMA::LOG-STREAM: NIL Local bindings: CHUNGA:CURRENT-ERROR-MESSAGE "While reading status line:"" DRAKMA::LINE: ""POST /stat/ping HTTP/1.1"" DRAKMA::FIRST-SPACE-POS: 4 DRAKMA::SECOND-SPACE-POS: 15
Thanks!
- Dan
drakma-devel mailing list drakma-devel@common-lisp.net http://common-lisp.net/cgi-bin/mailman/listinfo/drakma-devel
Hi Dan,
I never saw something like that. Can you reproduce it?
FWIW, Chunga uses buffered streams, but there are different buffers for input and output. And, again, I have never seen something like this. I would think that there are enough users of Drakma, so that somebody else should have encountered such a behavior before.
BTW, is the request line you saw the one you sent?
Edi.
On Thu, Mar 17, 2011 at 4:30 PM, Daniel Weinreb dlw@itasoftware.com wrote:
Has anybody seen a behavior in which read-status-line signals a syntax-error, and it turns out that the value of "line" looks like an HTTP request line rather than an HTTP status (response) line? The following is the stack trace.
From my old C++ days (may they never return), I conjectured that some string buffer is being reused or something like that.; We are running on CCL (formerly openmcl), and nothing like that is going on at the CCL level.; I don't know much about flexi-streams or gray-streams. Anyway that's just a rather wild guess. Thanks!
<READ-STATUS-LINE at pc +669 Arguments: (STREAM &OPTIONAL DRAKMA::LOG-STREAM) STREAM: <FLEXI-STREAMS:FLEXI-IO-STREAM #x30200938EB3D> DRAKMA::LOG-STREAM: NIL Local bindings: CHUNGA:CURRENT-ERROR-MESSAGE "While reading status line:"" DRAKMA::LINE: ""POST /stat/ping HTTP/1.1"" DRAKMA::FIRST-SPACE-POS: 4 DRAKMA::SECOND-SPACE-POS: 15
Thanks!
- Dan
drakma-devel mailing list drakma-devel@common-lisp.net http://common-lisp.net/cgi-bin/mailman/listinfo/drakma-devel
Edi Weitz wrote:
Hi Dan,
I never saw something like that. Can you reproduce it?
Ah, if I could do that, I wouldn't be asking. :(
FWIW, Chunga uses buffered streams, but there are different buffers for input and output. And, again, I have never seen something like this. I would think that there are enough users of Drakma, so that somebody else should have encountered such a behavior before.
BTW, is the request line you saw the one you sent?
Yes, it's the one we sent for this request.
It's not clear which level of abstraction could be causing this. Matt Emerson and Gail Zacharais have checked out the CCL level (what's going on inside with-output-to-stream), but it doesn't seem to be happening there. In fact I just don't see any way that this could be happening.
I was hoping against hope that someone might have already seen this.
Thanks!
-- Dan
Edi.
On Thu, Mar 17, 2011 at 4:30 PM, Daniel Weinreb dlw@itasoftware.com wrote:
Has anybody seen a behavior in which read-status-line signals a syntax-error, and it turns out that the value of "line" looks like an HTTP request line rather than an HTTP status (response) line? The following is the stack trace.
From my old C++ days (may they never return), I conjectured that some string buffer is being reused or something like that.; We are running on CCL (formerly openmcl), and nothing like that is going on at the CCL level.; I don't know much about flexi-streams or gray-streams. Anyway that's just a rather wild guess. Thanks!
<READ-STATUS-LINE at pc +669 Arguments: (STREAM &OPTIONAL DRAKMA::LOG-STREAM) STREAM: <FLEXI-STREAMS:FLEXI-IO-STREAM #x30200938EB3D> DRAKMA::LOG-STREAM: NIL Local bindings: CHUNGA:CURRENT-ERROR-MESSAGE "While reading status line:"" DRAKMA::LINE: ""POST /stat/ping HTTP/1.1"" DRAKMA::FIRST-SPACE-POS: 4 DRAKMA::SECOND-SPACE-POS: 15
Thanks!
- Dan
drakma-devel mailing list drakma-devel@common-lisp.net http://common-lisp.net/cgi-bin/mailman/listinfo/drakma-devel