Skip to content

Closing of StreamMessageProducer does not work reliable #968

Description

@OhioDschungel6
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions