Skip to content
This repository has been archived by the owner on Sep 3, 2024. It is now read-only.

Tests receive events eagerly #10

Merged

Conversation

avieth
Copy link
Contributor

@avieth avieth commented Jan 25, 2017

The motivation for this change: it should not be assumed that events at
an EndPoint will be queued without bound. That's to say, it should not
be assumed that an action which induces an event at an EndPoint will not
block if the previous event has not been pulled out by receive.

Related to haskell-distributed/network-transport-tcp#46
With that patch, it's possible to define a QDisc which uses a 1-place queue
for events. It's a perfectly reasonable option, but the tests as they stand will
deadlock because they assume that events will pile up in something like an
unbounded queue.

The motivation for this change: it should not be assumed that events at
an EndPoint will be queued without bound. That's to say, it should not
be assumed that an action which induces an event at an EndPoint will not
block if the previous event has not been pulled out by receive.
@avieth
Copy link
Contributor Author

avieth commented Jan 25, 2017

@dcoutts

@qnikst
Copy link
Contributor

qnikst commented Jan 27, 2017

LGTM

@facundominguez facundominguez merged commit d395763 into haskell-distributed:master Feb 3, 2017
@hyperthunk
Copy link
Member

+1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants