Skip to content

Unexpected message when using async once #479

Closed
@critch

Description

@critch

I wrote a very simple test case in elixir. From best I can tell, my example is nothing more than your documented async example, just with stream_next called to handle the once argument, and a timer.sleep of about 1000 to simulate a work load being made on the results.

Best I can guess, there must be a race condition that is easier to cause when there is a sufficiently large delay between the stream_next calls. I'm guessing the socket has sent all the data, and closed before our last call to stream_next.

This was tested with the 1.11 release.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions