Related to: https://www.quickfixj.org/jira/browse/QFJ-997
In short, HTTP(S) reconnection is not possible with a Proxy in the event the peer server shuts down.
The check for reconnection at /org/apache/mina/proxy/ProxyConnector:
When a peer shuts down, the SslHandler receives a message to close the connection, and eventually destroy it (
In the logs, you'll see the "Unexpected exception from SSLEngine.closeInbound()" message. The proxyIoSession.isReconnectionNeeded() will never be set to true once this happens.
In AbstractHttpLogicHandler.handleResponse()), this logic also defaults to false.
If we change proxy type to SOCKS(4/5) we are seeing the reconnect attempt due to /org/apache/mina/proxy/ProxyConnector.java:181, but would be nice to have the same functionality for the HTTP proxy. For HTTP sessions, proxyIoSession.isReconnectionNeeded() defaults to false since it's never set in the event of Handler exception.
I also can't see any obvious way to set the ProxyIoSession.reconnectionNeeded variable that would potentially trigger the reconnection.