snapd doesn't close connection on 400 bad request response
Bug #1598656 reported by
Robert Ancell
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snappy |
Fix Released
|
High
|
John Lenton |
Bug Description
If I send a bad request to snapd (in this case it was a bad Macaroon header) I get the response:
HTTP/1.1 400 Bad Request
Content-Type: text/plain
Connection: close
400 Bad Request: invalid header value
Which is fine, however snapd doesn't actually close the connection. When I do a second read from snapd (the above was all in one socket read) it just blocks instead of returning 0.
Changed in snappy: | |
status: | In Progress → Fix Committed |
Changed in snappy: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
This is a really god one.
We were leaking file descriptors in some situations /o\
and the hanging was the symptom of that. Thank you!