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

How to limit the maximum number of connections ? #56

Open
pigochu opened this issue Aug 28, 2019 · 1 comment
Open

How to limit the maximum number of connections ? #56

pigochu opened this issue Aug 28, 2019 · 1 comment

Comments

@pigochu
Copy link

pigochu commented Aug 28, 2019

I want to implement a proxy program.

A = evio
B = backend service

The client will connect to A , and A read data from B then out data to A

If B's max connections is 10. and clients is more than 10
In event.Opened , I use time.Sleep to wait B finish the work , but evio looks like blocked.

So how do I implement it ? or any options can set max connections and backlog ?

@cheng-zhongliang
Copy link

When Open event on, return CLOSE action.

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