[
https://issues.apache.org/jira/browse/HTTPCORE-108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12517207
]
Alexander Veit commented on HTTPCORE-108:
-----------------------------------------
Hi Oleg
Here's a short snippet that should suffice to show the problem:
public static void main(String[] args) throws Exception
{
HttpParams params;
DefaultListeningIOReactor ioReactor;
params = new BasicHttpParams();
ioReactor = new DefaultListeningIOReactor(2, params);
ioReactor.listen(new InetSocketAddress(8084));
ioReactor.shutdown();
ioReactor.listen(new InetSocketAddress(8084));
ioReactor.shutdown();
}
> DefaultListeningIOReactor does not provide access to the ServerSocketChannel
> nor to the bound socket
> ----------------------------------------------------------------------------------------------------
>
> Key: HTTPCORE-108
> URL: https://issues.apache.org/jira/browse/HTTPCORE-108
> Project: HttpComponents Core
> Issue Type: Bug
> Components: HttpCore NIO
> Affects Versions: 4.0-alpha5
> Environment: any
> Reporter: Alexander Veit
> Priority: Blocker
>
> DefaultListeningIOReactor does not provide access to the ServerSocketChannel
> nor to the bound socket.
> org.apache.http.impl.nio.reactor.DefaultListeningIOReactor#listen(SocketAddress)
> opens a ServerSocketChannel and bind to the given address. However there is
> no way to free the allocated system resources. They are being used unti the
> Java VM terminates.
> This leads to problems in all circumstances where the listener should be
> restarted within the same VM.
--
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]