Closed frankbenoit closed 2 years ago
Hi Frank,
ATM I do a socket.close() and I call the cancel of the Future that is returned by the Launcher.startListening.
I think this socket.close()
is the culprit here. Just call cancel(true)
on the future and everything should be OK.
From the sources, I think the StreamMessageProducer.close() should be called somehow, to avoid the logging in the shutdown case. But the instance of StreamMessageProducer is not accessible and its close() seems nowhere be called.
The close()
is called at ConcurrentMessageProcessor
, line 72 (when the wrapping future is canceled with mayInterruptIfRunning == true
).
HTH
Thanks, i missed that one
Hi,
I see these loggings:
Those are in general OK, but they should not be there when a connection is shut down intentionally. Now I wonder how to shut down correctly. ATM I do a socket.close() and I call the cancel of the Future that is returned by the Launcher.startListening.
From the sources, I think the StreamMessageProducer.close() should be called somehow, to avoid the logging in the shutdown case. But the instance of StreamMessageProducer is not accessible and its close() seems nowhere be called.
Is it a bug? Is there another procedure to shut down a Launcher correctly?
Frank