Details
Description
I used modified HttpProxy with jetty as front end for the 2 webservers: amazon S3 and tomcat
It seems HttpClient attemtps to use connections that expired instead of creating new connections
I added page to jetty that replaces HttpClient object in servlet with a new instance of HttpClient.
private void initHttpClient() throws ServletException {
_client = new HttpClient();
_client.setConnectorType(HttpClient.CONNECTOR_SOCKET);
// _client.setConnectorType(HttpClient.CONNECTOR_SELECT_CHANNEL);
_client.setMaxConnectionsPerAddress(100);
// _client.setMaxRetries(0);
try
catch (Exception e)
{ throw new ServletException(e); }}
Everytime when I am calling initHttpClient() method HttpProxy starts to work again for some time.
Both SOCKET and SELECT versions are affected
It happens after some unpredictable period of time: 30 minutes or 6 hours.
Activity
| Field | Original Value | New Value |
|---|---|---|
| Status | Open [ 1 ] | Closed [ 6 ] |
| Resolution | Cannot Reproduce [ 5 ] |
Max,
7.0.0.pre5 is an old early release of jetty-7 It has many bugs that have since been fixed.
Can you try the latest jetty 7.0.0.M? release from http://eclipse.org/jetty
cheers