I have a few more simple questions: 1) Is this list still the appropriate place to ask HttpComponents questions (vs HttpClient) and will there be a new List created for the HttpComponents project?
I just finished reading most of the HTTP 1.1 RFC and I tried to pay attention to the Persistent Connections as I was curious as to their impact on my application. So I have a simple proof-of-concept proxy server (based on the example ElementalHttpServer) and it is receiving connections. I understand that persistent connections are the default for all HTTP 1.1 communication. I see the HttpCore code refer to keeping the connections alive (even debug messages). So here are my questions ... 2) When I use Firefox to go grab a webpage that contains URI's to several other resources (images, css files etc) Firefox seems to make a new connection to port 8080 everytime and does not reuse the connection that it originally established. To my knowlege I am not explicitly closing the connection as I am expecting more connections to come. If you look at the ElementalHttpServer code you will see pretty much exactly what I am doing when dealing with the client. Eventually the ConnectionProcessorThread will try to read from the socket again as the connections was kept open and I will get a Socket Read error. So is there something I might be doing wrong that makes Firefox create a new connection? Is there something I might be missing or misunderstanding? 3) Is it because its a proxy server and the browsers make new connections to proxies vs reuse existing connections to web servers? 4) When it comes to connection persistence and I am the client talking to a server will the underlying framework handle the "close" connection header for me and close the connection or is that something I will have to look for ? Also if I explicitly close a connection to a server on a persistent connection does that action send a connection "close" header? thanks for all your help I hope my endaevors will provide some good stress testing of this framework. I really like what I see so far Doug -- What profits a man if he gains the whole world yet loses his soul?
