evio icon indicating copy to clipboard operation
evio copied to clipboard

How to limit the maximum number of connections ?

Open pigochu opened this issue 6 years ago • 1 comments

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 ?

pigochu avatar Aug 28 '19 09:08 pigochu

When Open event on, return CLOSE action.

cheng-zhongliang avatar Dec 20 '22 10:12 cheng-zhongliang