Details
Description
SUBJ.
See CBSE-1081.
Those requests are expected to return 404. But sometimes they cause errors instead of 404.
While investigating I found that it's caused by any 404 returned from POST. The issue is that request body is not consumed. And mochiweb decides to close socket despite headers indicating that it will keep it open. Standard allows that behavior.
Because we're using connection pool for http sockets those silently closed socket cause errors on socket reuse.