[ 
https://issues.apache.org/jira/browse/HTTPCORE-108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12517716
 ] 

Sam Berlin commented on HTTPCORE-108:
-------------------------------------

The line 'SelectionKey key = serverChannel.register(this.selector, 
SelectionKey.OP_ACCEPT);' is registering the channel in the selector, which 
will keep a hard-reference around to the channel, and the channel keeps a hard 
reference to the socket.  It still might not be cleaned up correctly (if 
there's nothing that gets the channel from the SelectionKey from the Selector), 
but it wouldn't be because it's out-of-scope.

> 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
>            Assignee: Oleg Kalnichevski
>            Priority: Blocker
>             Fix For: 4.0-alpha6
>
>
> 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]

Reply via email to