[go: up one dir, main page]

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

EndPoint 往虚拟连接转发包的时候没有保证虚拟连接是可用的 #7

Closed
patricksuo opened this issue Mar 31, 2017 · 0 comments

Comments

@patricksuo
Copy link
Contributor

g1 -> EndPoint.loop:
-------> vconn := p.virtualConns.Get(connID)
g2 virtualCodec.Close()
关闭流程和转发流程之间不是互斥的

2017/03/31 11:44:53 fastway.EndPoint: PANIC - send on closed channel
goroutine 93 [running]:
runtime/debug.Stack(0xc42030dd98, 0x951640, 0xc4219c01c0)
        /usr/local/go/src/runtime/debug/stack.go:24 +0x79
github.com/funny/fastway/go.(*EndPoint).loop.func1(0xc42031e090)
        /home/sandbox/Server/gocode/src/github.com/funny/fastway/go/endpoint.go:237 +0x6b
panic(0x951640, 0xc4219c01c0)
        /usr/local/go/src/runtime/panic.go:489 +0x2cf
github.com/funny/fastway/go.(*EndPoint).loop(0xc42031e090)
        /home/sandbox/Server/gocode/src/github.com/funny/fastway/go/endpoint.go:259 +0x1cc
created by github.com/funny/fastway/go.NewServer
        /home/sandbox/Server/gocode/src/github.com/funny/fastway/go/endpoint.go:79 +0x2ab
@bg5sbk bg5sbk closed this as completed in c9caeaa May 17, 2017
bg5sbk added a commit that referenced this issue May 17, 2017
让虚拟连接关闭和接受转发包两件事情互斥 fix #7
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

No branches or pull requests

1 participant