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 issue #7 #11

Closed
wants to merge 2 commits into from
Closed

Fix issue #7 #11

wants to merge 2 commits into from

Conversation

jaredfolkins
Copy link

This is the finalized proposed fix for issue #7.

Helin Wang and others added 2 commits February 24, 2016 16:19
Issue is "panic: runtime error: cgo argument has Go pointer to Go pointer"
From golang guidline, since go 1.6, "Go code may not store a Go pointer in C memory."

This fix use stream id as custom data passed into c, and uses a map to find the stream by id
in the callback. Thus no more Go pointer in C memory.
@cfreeman
Copy link

cfreeman commented Mar 3, 2016

Just gave this a test in a project I'm upgrading to go1.6. Works as advertised, many thanks.

@fogleman
Copy link

@gordonklaus Can you please merge this?

@gordonklaus
Copy link
Owner

This is fixed in 21c960f

@fogleman
Copy link

@gordonklaus Thanks for the fix!

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.

4 participants