def messageProducer = new StreamMessageProducer(para,para)
ForkJoinPool.commonPool().submit(() -> messageProducer.listen(endpoint))
messageProducer.close()
In this code i would expect that the thread will be stopped.
In reality the StreamMessageProducer does not close properly, because only a boolean flag is toggled, but it could be already in a blocking state, because input.read is a blocking call.
I fixed the issue in the following PR:
#967
In this code i would expect that the thread will be stopped.
In reality the
StreamMessageProducerdoes not close properly, because only a boolean flag is toggled, but it could be already in a blocking state, becauseinput.readis a blocking call.I fixed the issue in the following PR:
#967