SylphiaWindy / fhscanhttplibrary

Automatically exported from code.google.com/p/fhscanhttplibrary
0 stars 0 forks source link

HTTP Proxy returns corrupted headers - ReadHTTPResponseData() #4

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. browse a website like www.terra.es with IE8 against fhscan proxy

What is the expected output? What do you see instead?
Pages retrieved. 

Instead lots of pages are returned with invalid status code.
After some deeper inspection... looks like ReadHTTPResponse() fails to
retrieve the complete HTTP response data therefore next reads return
previous http data instead of http headers.

ReadHTTPProxyRequestData() its reading fine the client requests so the
problem must be at ReadHTTPResponseData() ( Maybe its a chunkencoding error )

Original issue reported on code.google.com by atarasco@gmail.com on 22 Nov 2009 at 5:18

GoogleCodeExporter commented 8 years ago
ReadHTTPResponseData() have been rewritten so maybe we have new bugs here but 
the
problem was not related to this funtion.

There is a variable named ThreadID , that exists in both HTTPHandle and 
connection
classes. The main purpose of ThreadID is to check if its possible to assign
previously stablished connections to a handle instead of creating a new 
connection.

There was a bug at HTTPAPIHANDLE::InitHandle() that sets ThreadID to 0, causing 
that
several threads were using the same socket.

Original comment by atarasco@gmail.com on 22 Nov 2009 at 11:14

GoogleCodeExporter commented 8 years ago
Seems to be fixed at revision 101

Original comment by atarasco@gmail.com on 23 Nov 2009 at 5:52