Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Jakarta-httpclient 
Wiki" for change notification.

The following page has been changed by RolandWeber:
http://wiki.apache.org/jakarta-httpclient/ConnectionManagementDesign

------------------------------------------------------------------------------
  
  Connections should be requested from a connection manager with a 
specification of the intended route. The connection manager returns a 
connection which is either closed, matches the route exactly, or is a prefix of 
the route. We need representations for the intended route and for the actual 
route of the returned connection. Connection managers can compute internal keys 
for connection lookup based on the routes.
  [[BR]]
- A connection manager can not establish all routes automatically. Opening a 
plain socket or TLS/SSL socket could be implemented there, but tunnelling 
requires HTTP communication and possibly HTTP authentication. This is out of 
scope for a connection manager. Since routes can not always be established by 
the connection manager, that responsibility should reside elsewhere completely, 
rather than being split between the connection manager and an outside 
component. 
+ A connection manager can not establish all routes automatically. Opening a 
plain socket or TLS/SSL socket could be implemented there, but tunnelling 
requires HTTP communication and possibly HTTP authentication. This is out of 
scope for a connection manager. Since routes can not always be established by 
the connection manager, that responsibility should reside elsewhere completely, 
rather than being split between the connection manager and an outside component.
+ That does not mean a connection manager can't offer methods for example to 
open sockets, but the responsibility for calling these is elsewhere.
  
  When a connection is released, the connection manager needs to know which 
route has actually been established. The connection may be closed, the full 
route may have been established, or a prefix thereof. Since routes are 
established outside of the connection manager, there might also be misbehaving 
applications that establish a route different from the one for which the 
connection was allocated.
  [[BR]]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to