forked from macournoyer/ruby_http_parser
-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Description
I am using http parser with read_nonblock. I've obtained a timeout or eof exceptions. I was image that on_message_complete is a callback and it will be fired when the request or response has finished. But I was wrong.
it "should abort parser via header complete callback without a body" do
"GET / HTTP/1.0\r\n" +
"Content-Length: 0\r\n" +
"\r\n"
...
expect(@body).to be_empty
expect(@done).to be false
I have more absurd:
HTTP/1.1 200 Connection established\r\n
Connection: close\r\n
\r\n
The headers has finished but the message hasn't finished. What are you waiting for? Connection has been already closed.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels