Description
Hi,
Actually AbstractConduitSelector.getSelectedConduit() creates and caches conduit in selectedConduit variable. Cached conduit is reused by the next calls.
I see the following problem: if user changed protocol in URI between calls, AbstractConduitSelector still uses cached Conduit even it cannot process new URL. In my case cached HTTP consuit tries to process UDP URL.
Proposal for fix: check if protocol in URL was changed and if yes, close and reset selectedConduit.
Patch is attached.
Regards,
Andrei.