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

server关闭速度很慢 #38

Open
Gux12 opened this issue Jan 8, 2018 · 1 comment
Open

server关闭速度很慢 #38

Gux12 opened this issue Jan 8, 2018 · 1 comment

Comments

@Gux12
Copy link

Gux12 commented Jan 8, 2018

我在运行时用
let ssLocal = require('encryptsocks').createClient(config, true)
开启本地代理客户端,之后用
ssLocal.closeAll()
关闭代理并等待ssLocal.server和ssLocal.pacServer的close事件回调
pacServer回调很快,但是server的回调很慢,这是什么原因呢?
或者有没有更好的方法来解决我的需求呢~谢谢

@oyyd
Copy link
Owner

oyyd commented Jan 17, 2018

server也是默认net模块创建的tcp server,要看你的目标是“多快”,因为server要等到所有的连接都关闭后才会触发回调

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