You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Johannes Koch (JIRA)" <ji...@apache.org> on 2007/09/21 13:53:50 UTC

[jira] Created: (HTTPCLIENT-690) Provide access to the wrappedConnection in org.apache.http.impl.conn.AbstractClientConnAdapter via some interface

Provide access to the wrappedConnection in org.apache.http.impl.conn.AbstractClientConnAdapter via some interface
-----------------------------------------------------------------------------------------------------------------

                 Key: HTTPCLIENT-690
                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-690
             Project: HttpComponents HttpClient
          Issue Type: Wish
          Components: HttpConn
    Affects Versions: Snapshot
            Reporter: Johannes Koch
            Priority: Minor
             Fix For: Snapshot


Provide access to the wrappedConnection in org.apache.http.impl.conn.AbstractClientConnAdapter via some interface in order to access the socket from within an HttpProcessor. Currently the org.apache.http.conn.OperatedClientConnection has a getSocket() method, but the connection implementation returned by

  context.getAttribute(ExecutionContext.HTTP_CONNECTION) 

(org.apache.http.impl.conn.tsccm.BasicPooledConnAdapter) does not provide access to the wrappedConnection.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org


Re: [jira] Resolved: (HTTPCLIENT-690) Provide access to SSLSession in ManagedClientConnection

Posted by Johannes Koch <jo...@fit.fraunhofer.de>.
Roland Weber (JIRA) schrieb:
>      [ https://issues.apache.org/jira/browse/HTTPCLIENT-690?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
> 
> Roland Weber resolved HTTPCLIENT-690.
> -------------------------------------
> 
>     Resolution: Fixed
> 
> I've added ManagedClientConnection.getSSLSession(). Could you give it a try?

Yep, works for me, thanks.

-- 
Johannes Koch
BIKA Web Compliance Center - Fraunhofer FIT
Schloss Birlinghoven, D-53757 Sankt Augustin, Germany
Phone: +49-2241-142628    Fax: +49-2241-142065

---------------------------------------------------------------------
To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org


[jira] Resolved: (HTTPCLIENT-690) Provide access to SSLSession in ManagedClientConnection

Posted by "Roland Weber (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HTTPCLIENT-690?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Roland Weber resolved HTTPCLIENT-690.
-------------------------------------

    Resolution: Fixed

I've added ManagedClientConnection.getSSLSession(). Could you give it a try?

cheers,
  Roland


> Provide access to SSLSession in ManagedClientConnection
> -------------------------------------------------------
>
>                 Key: HTTPCLIENT-690
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-690
>             Project: HttpComponents HttpClient
>          Issue Type: Improvement
>          Components: HttpConn
>    Affects Versions: Snapshot
>            Reporter: Johannes Koch
>            Priority: Minor
>             Fix For: 4.0 Alpha 2
>
>
> Provide access to the wrappedConnection in org.apache.http.impl.conn.AbstractClientConnAdapter via some interface in order to access the socket from within an HttpProcessor. Currently the org.apache.http.conn.OperatedClientConnection has a getSocket() method, but the connection implementation returned by
>   context.getAttribute(ExecutionContext.HTTP_CONNECTION) 
> (org.apache.http.impl.conn.tsccm.BasicPooledConnAdapter) does not provide access to the wrappedConnection.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org


Re: [jira] Updated: (HTTPCLIENT-690) Provide access to the wrappedConnection in org.apache.http.impl.conn.AbstractClientConnAdapter via some interface

Posted by Johannes Koch <jo...@fit.fraunhofer.de>.
Hi Oleg,

Oleg Kalnichevski schrieb:
> The whole point is we do not want to expose the wrapped connection so we
> could make sure it is still in a consistent state once it has been
> returned back to the manager and made re-usable.

I see.
-- 
Johannes Koch
BIKA Web Compliance Center - Fraunhofer FIT
Schloss Birlinghoven, D-53757 Sankt Augustin, Germany
Phone: +49-2241-142628    Fax: +49-2241-142065

---------------------------------------------------------------------
To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org


Re: [jira] Updated: (HTTPCLIENT-690) Provide access to the wrappedConnection in org.apache.http.impl.conn.AbstractClientConnAdapter via some interface

Posted by Oleg Kalnichevski <ol...@apache.org>.
On Fri, 2007-09-21 at 14:58 +0200, Johannes Koch wrote:
> Oleg Kalnichevski (JIRA) schrieb:
> >      [ https://issues.apache.org/jira/browse/HTTPCLIENT-690?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
> > 
> > Oleg Kalnichevski updated HTTPCLIENT-690:
> > -----------------------------------------
> > 
> >     Fix Version/s:     (was: Snapshot)
> >                    4.0 Alpha 2
> > 
> > Would giving access to the SSLSession be sufficient?
> 
> For my use case, yes, but ...
> 
> > Do we really need to expose the underlying socket?
> 
> the OperatedClientConnection already exposes the socket, while the 
> BasicPooledConnAdapter does not expose the wrapped OperatedClientConnection.
> 

Johannes,

The whole point is we do not want to expose the wrapped connection so we
could make sure it is still in a consistent state once it has been
returned back to the manager and made re-usable.

Oleg 


---------------------------------------------------------------------
To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org


Re: [jira] Updated: (HTTPCLIENT-690) Provide access to the wrappedConnection in org.apache.http.impl.conn.AbstractClientConnAdapter via some interface

Posted by Johannes Koch <jo...@fit.fraunhofer.de>.
Oleg Kalnichevski (JIRA) schrieb:
>      [ https://issues.apache.org/jira/browse/HTTPCLIENT-690?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
> 
> Oleg Kalnichevski updated HTTPCLIENT-690:
> -----------------------------------------
> 
>     Fix Version/s:     (was: Snapshot)
>                    4.0 Alpha 2
> 
> Would giving access to the SSLSession be sufficient?

For my use case, yes, but ...

> Do we really need to expose the underlying socket?

the OperatedClientConnection already exposes the socket, while the 
BasicPooledConnAdapter does not expose the wrapped OperatedClientConnection.

-- 
Johannes Koch
BIKA Web Compliance Center - Fraunhofer FIT
Schloss Birlinghoven, D-53757 Sankt Augustin, Germany
Phone: +49-2241-142628    Fax: +49-2241-142065

---------------------------------------------------------------------
To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org


[jira] Updated: (HTTPCLIENT-690) Provide access to the wrappedConnection in org.apache.http.impl.conn.AbstractClientConnAdapter via some interface

Posted by "Oleg Kalnichevski (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HTTPCLIENT-690?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oleg Kalnichevski updated HTTPCLIENT-690:
-----------------------------------------

    Fix Version/s:     (was: Snapshot)
                   4.0 Alpha 2

Would giving access to the SSLSession be sufficient? Do we really need to expose the underlying socket?

Oleg

> Provide access to the wrappedConnection in org.apache.http.impl.conn.AbstractClientConnAdapter via some interface
> -----------------------------------------------------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-690
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-690
>             Project: HttpComponents HttpClient
>          Issue Type: Wish
>          Components: HttpConn
>    Affects Versions: Snapshot
>            Reporter: Johannes Koch
>            Priority: Minor
>             Fix For: 4.0 Alpha 2
>
>
> Provide access to the wrappedConnection in org.apache.http.impl.conn.AbstractClientConnAdapter via some interface in order to access the socket from within an HttpProcessor. Currently the org.apache.http.conn.OperatedClientConnection has a getSocket() method, but the connection implementation returned by
>   context.getAttribute(ExecutionContext.HTTP_CONNECTION) 
> (org.apache.http.impl.conn.tsccm.BasicPooledConnAdapter) does not provide access to the wrappedConnection.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org


[jira] Updated: (HTTPCLIENT-690) Provide access to SSLSession in ManagedClientConnection

Posted by "Roland Weber (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HTTPCLIENT-690?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Roland Weber updated HTTPCLIENT-690:
------------------------------------

    Issue Type: Improvement  (was: Wish)
       Summary: Provide access to SSLSession in ManagedClientConnection  (was: Provide access to the wrappedConnection in org.apache.http.impl.conn.AbstractClientConnAdapter via some interface)

The wrapped connection and socket should not be easily accessible directly. Direct access interferes with connection management. Applications in dire need of that feature should use an extended connection manager.

(see the discussion on httpcomponents-dev)


> Provide access to SSLSession in ManagedClientConnection
> -------------------------------------------------------
>
>                 Key: HTTPCLIENT-690
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-690
>             Project: HttpComponents HttpClient
>          Issue Type: Improvement
>          Components: HttpConn
>    Affects Versions: Snapshot
>            Reporter: Johannes Koch
>            Priority: Minor
>             Fix For: 4.0 Alpha 2
>
>
> Provide access to the wrappedConnection in org.apache.http.impl.conn.AbstractClientConnAdapter via some interface in order to access the socket from within an HttpProcessor. Currently the org.apache.http.conn.OperatedClientConnection has a getSocket() method, but the connection implementation returned by
>   context.getAttribute(ExecutionContext.HTTP_CONNECTION) 
> (org.apache.http.impl.conn.tsccm.BasicPooledConnAdapter) does not provide access to the wrappedConnection.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org