Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Duplicate
-
Affects Version/s: 1.5.0, 1.5.1
-
Fix Version/s: None
-
Component/s: Engine
-
Labels:None
Description
This is a similar issue as in QFJ-348 but for acceptors.
When I do acceptor.start() QF/J says:
Listening for connections at 0.0.0.0/0.0.0.0:10040
netstat output:
tcp6 0 0 :::10040 :::* LISTEN
After a stop() and another start(), the acceptor does not print the usual "Listening... at" information and also the netstat output is not listing the port.
A workaround could be to re-create the acceptor. But this is somewhat unexpected since we have start() and stop() methods.
If I interpret the code in the SocketAcceptor.class correctly, all that is needed is to set the "isStarted" flag to FALSE again on a stop(). This would trigger the call of the method "startAcceptingConnections()" on the next start() call. Could someone with more insight into the code please comment on this?
Thanks in advance,
Chris.