HTTPCLIENT-741: More concurrency fixes in HttpConn classes

Contributed by Tim Julien <tjulien at limewire.com>
Reviewed by Oleg Kalnichevski

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@643531 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Oleg Kalnichevski 2008-04-01 19:38:50 +00:00
parent 5956d0ed5f
commit 4b3b19a8bd
2 changed files with 4 additions and 4 deletions

View File

@ -69,16 +69,16 @@ import org.apache.http.conn.OperatedClientConnection;
public abstract class AbstractPoolEntry { public abstract class AbstractPoolEntry {
/** The underlying connection being pooled or used. */ /** The underlying connection being pooled or used. */
protected OperatedClientConnection connection; protected volatile OperatedClientConnection connection;
/** The route for which this entry gets allocated. */ /** The route for which this entry gets allocated. */
//@@@ currently accessed from connection manager(s) as attribute //@@@ currently accessed from connection manager(s) as attribute
//@@@ avoid that, derived classes should decide whether update is allowed //@@@ avoid that, derived classes should decide whether update is allowed
//@@@ SCCM: yes, TSCCM: no //@@@ SCCM: yes, TSCCM: no
protected HttpRoute plannedRoute; protected volatile HttpRoute plannedRoute;
/** The tracked route, or <code>null</code> before tracking starts. */ /** The tracked route, or <code>null</code> before tracking starts. */
protected RouteTracker tracker; protected volatile RouteTracker tracker;
/** /**

View File

@ -63,7 +63,7 @@ import org.apache.http.conn.OperatedClientConnection;
public abstract class AbstractPooledConnAdapter extends AbstractClientConnAdapter { public abstract class AbstractPooledConnAdapter extends AbstractClientConnAdapter {
/** The wrapped pool entry. */ /** The wrapped pool entry. */
protected AbstractPoolEntry poolEntry; protected volatile AbstractPoolEntry poolEntry;
/** /**