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 go1.6rc2 panic where closenotify was called from wrong goroutine #2315

Merged
merged 1 commit into from
Feb 8, 2016

Conversation

rwcarlsen
Copy link
Contributor

This issue is referenced in the comments of #2108. Docker had a similar bug mentioned in golang/go#14001

@GitCop
Copy link

GitCop commented Feb 8, 2016

There were the following issues with your Pull Request

  • Commit: 752ce80
    • Invalid signoff. Commit message must end with
      License: MIT
      Signed-off-by: .* <.*>

We ask for a few features in the commit message for Open Source licensing hygiene and commit message clarity.
git commit --amend can often help you quickly improve the commit message.
Guidelines and a script are available to help in the long run.
Your feedback on GitCop is welcome on this issue.


This message was auto-generated by https://gitcop.com

Previously, this was the result when running a test with go1.6rc2:

    go test github.com/ipfs/go-ipfs/commands/http
    panic: net/http: CloseNotify called after ServeHTTP finished

    goroutine 19 [running]:
    net/http.(*response).CloseNotify(0xc8202ca1a0, 0x0)
        /home/r/go/src/net/http/server.go:1533 +0x9d
    github.com/ipfs/go-ipfs/commands/http.internalHandler.ServeHTTP.func2(0x7f42c9d1d180, 0xc8202ca1a0, 0x7f42c9d66e90, 0xc8200f0380, 0xc8201d40d0)
        /home/r/src/github.com/ipfs/go-ipfs/commands/http/handler.go:143 +0x39
    created by github.com/ipfs/go-ipfs/commands/http.internalHandler.ServeHTTP
        /home/r/src/github.com/ipfs/go-ipfs/commands/http/handler.go:147 +0x49d
    FAIL	github.com/ipfs/go-ipfs/commands/http	0.013s

I had also encountered this panic when trying to use the webui.

License: MIT
Signed-off-by: Robert Carlsen <[email protected]>
@rwcarlsen rwcarlsen force-pushed the fix-closenotify-panic branch from 752ce80 to ed23d99 Compare February 8, 2016 21:50
@ghost
Copy link

ghost commented Feb 8, 2016

This LGTM and I think I even encountered this myself when trying to run go-ipfs build with 1.6.2rc2 in Alpine Linux.

@whyrusleeping
Copy link
Member

@rwcarlsen Great catch! thank you! this looks correct to me, there might be one other place this happens in but I can fix it

whyrusleeping added a commit that referenced this pull request Feb 8, 2016
fix go1.6rc2 panic where closenotify was called from wrong goroutine
@whyrusleeping whyrusleeping merged commit 4c02c98 into ipfs:master Feb 8, 2016
@Kubuxu Kubuxu mentioned this pull request May 31, 2016
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.

3 participants