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

socket server端代码疑问 #22

Closed
huangaz opened this issue Dec 6, 2018 · 1 comment
Closed

socket server端代码疑问 #22

huangaz opened this issue Dec 6, 2018 · 1 comment

Comments

@huangaz
Copy link

huangaz commented Dec 6, 2018

chapter3/socket/tcp_socket.go 中,server 端的 wg.Done() 放在 handleConn() 中,会导致 server 端的 listener.Close() 无法被执行吧?

@hyper0x
Copy link
Contributor

hyper0x commented Jan 26, 2019

在这个例子里,这不是问题,也不是重点。你也可以自己改造一下,把listener传进serverGo函数。

@hyper0x hyper0x closed this as completed Jan 26, 2019
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

2 participants