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:
parent
5956d0ed5f
commit
4b3b19a8bd
|
@ -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;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue