-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Plugin may need more than 2 seconds to start #240
Comments
That's bad. :( Those code were added for ensuring that when server's port is listening, server is ready for accepting requests. Also, the LoadBalancer requires initialization for choosing the best server. If removing this, LoadBalancer's constructor won't be able to know which server is dead. shadowsocks-rust/src/relay/loadbalancing/server.rs Lines 342 to 434 in ea24418
Both of them will eventually cause failures just after launch. |
I would prefer that. And don't crash if any plugins don't response in time. |
On some old Android device, we expect plugins like v2ray would have a very slow startup, which will break the assumption below:
shadowsocks-rust/src/plugin/mod.rs
Line 215 in ea24418
Here's the bug report for shadowsocks-android:
shadowsocks/shadowsocks-android#2515 (comment)
We may wait longer enough, say 10 seconds, or just remove this connection test in shadowsocks-rust.
BTW, I expect even slower startup on some embedded devices like routers.
The text was updated successfully, but these errors were encountered: