You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Keith Wall (JIRA)" <ji...@apache.org> on 2016/04/14 16:05:26 UTC
[jira] [Created] (QPID-7199) Port startup/shutdown should await
registration/deregistration of OP_ACCEPT
Keith Wall created QPID-7199:
--------------------------------
Summary: Port startup/shutdown should await registration/deregistration of OP_ACCEPT
Key: QPID-7199
URL: https://issues.apache.org/jira/browse/QPID-7199
Project: Qpid
Issue Type: Improvement
Components: Java Broker
Reporter: Keith Wall
Port startup currently may claim the port is listening before the port is actually bound and accepting connection. On stop, the close of the server socket races with the deregistering of the server socket from the selector.
Refactor start and stop so that the Port's activation step does not complete until the server socket is registered on the selector with OP_ACCEPT, and at shutdown, the closing of the server socket channel should not occur until after the socket registering on the selector has been removed. We can achieve this using our established {{ListenableFuture}} patterns.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org