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

Make net.go:conn Write thread safe. #124

Merged
merged 1 commit into from
Sep 28, 2017
Merged

Make net.go:conn Write thread safe. #124

merged 1 commit into from
Sep 28, 2017

Conversation

samribeiro
Copy link
Contributor

@samribeiro samribeiro commented Sep 26, 2017

There may be more work into this, but in case I want to have a multi threaded app using Openflow.Send(...), the inner Write needs to be under a lock. I am assuming this was the initial intent anyway since the mutex already exists in the code.

closes #125

Copy link
Member

@ybubnov ybubnov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good to me.

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

Successfully merging this pull request may close these issues.

Make net.go:conn.Send() thread safe
2 participants