Skip to content
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

Merged
merged 1 commit into from
Mar 2, 2020
Merged

Fix a race condition in demuxing (IO) #1730

merged 1 commit into from
Mar 2, 2020

Conversation

karknu
Copy link
Contributor

@karknu karknu commented Mar 2, 2020

For 0 length SDUs there was a risk that the responder application
finished before the ingress thread parsed the header and threw an exception.

@karknu karknu requested review from dcoutts and coot March 2, 2020 16:06
@karknu
Copy link
Contributor Author

karknu commented Mar 2, 2020

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.
@karknu karknu force-pushed the karknu/mux_deser branch from 5ab75da to 0a7ad4c Compare March 2, 2020 16:09
Copy link
Contributor

@coot coot left a 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
Copy link
Contributor

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 ;)

Copy link
Contributor Author

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.

Copy link
Contributor

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.

Copy link
Contributor Author

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...

@karknu
Copy link
Contributor Author

karknu commented Mar 2, 2020

bors r+

@iohk-bors
Copy link
Contributor

iohk-bors bot commented Mar 2, 2020

@iohk-bors iohk-bors bot merged commit 60202d6 into master Mar 2, 2020
@iohk-bors iohk-bors bot deleted the karknu/mux_deser branch March 2, 2020 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants