-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix a race condition in demuxing (IO) #1730
Conversation
Fixes #1729. |
For 0 length SDUs there was a risk that the responder application finished before the ingress thread parsed the header and threw an exception.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -101,7 +101,7 @@ smallMiniProtocolLimit = 16*1024 | |||
|
|||
activeTracer :: forall m a. (MonadSay m, Show a) => Tracer m a | |||
activeTracer = nullTracer | |||
--activeTracer = showTracing sayTracer | |||
--activeTracer = showTracing _sayTracer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need to change this line ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed, but it is changed to match the current name of the debug function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm, I don't like this upstream change: _names
are reserved for not used identifiers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The function is called _sayTracer
and it is unused since active tracer is commented out.
But ifdefs is another alternative...
bors r+ |
For 0 length SDUs there was a risk that the responder application
finished before the ingress thread parsed the header and threw an exception.