Github user dmap commented on the issue:

    https://github.com/apache/httpcomponents-core/pull/94
  
    > Do you mind also committing your implementation IOEventHandler? I would 
like to take a stab at refactoring the code and see if I get anywhere.
    
    @ok2c Updated the IOEventHandler impl to also support username/password 
auth and pushed as you requested.
    
    The immediate problem is the completion of the `IOSessionRequest` on line 
89 of `InternalConnectChannel` triggers the starting of the SSL negotiation via 
a callback.  This needs to be somehow prevented in the SOCKS case (fairly easy 
with just a magic flag) and then actually completed when SOCKS is finished.  I 
couldn't find an elegant solution to this second step, you essentially need 
some way of letting the IOEventHandler signal to the InternalDataChannel the 
connection is established so the right steps can be done.  It is certainly 
possible, I just thought it more intrusive than the current approach.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to