When trying to connect through an Squid Http Proxy using ProxyConnector (requiring basic authentication). While debugging issue, I walked through MINA code. Following are my observations:
1. First attempt made by MINA do not send any authentication details even though property set, seems like its to get first response mentioning authentication method.
2. So a second connection is initiated from ProxyConnector and this time request contains the authentication header.
ISSUE: My client kept waiting at this point and it seems that second connection never got completed. I used eclipse debugger and found that AbstractPollingIoConnector.connect0 method is getting called with proper destination (As I used a NioSocketConnector to construct ProxyConnector) but after that no progress.
Also at Line#343 following were the content of request variable (I wonder if this could be of help )
request AbstractPollingIoConnector$ConnectionRequest (id=82)
handle SocketChannelImpl (id=88)
lock AbstractPollingIoConnector$ConnectionRequest (id=82)
sessionInitializer ProxyIoSessionInitializer<T> (id=104)
this$0 NioSocketConnector (id=40)