-
Notifications
You must be signed in to change notification settings - Fork 70
Description
I have a very spammy question that sends lots of requests. It appears to use wininet to make these request, which I think, from what I read, means no pipelined requests.
I'm using the restkit WSGI proxy.
During a particular case where there's a large response being written onto the socket and another request being made in parallel, I'm getting an error in http-parser; the amount of data parsed is 0 while the amount received is the size of the chunk.
This error occurs when construction headers to get the location (used in get_response), but when I
change it so that location is not being read), I still get the same error in the response tee.
This error occurs because the second request gets part of the response from the first one, and this is not valid HTTP.
When I change the connection pool to have a max size of 1, the error seems to go away.
I only seem to get this error when I run the restkit-based code in Windows environment, not when I run it in Linux. I also don't get this error when I access the server using a normal web browser.
May be related to benoitc/http-parser#44
May be a bug in socketpool on Windows, I don't know.