You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add tonic::transport::Server::max_concurrent_connections(limit: usize) which limits the number of concurrent connections that are allowed to be served at the same time. If we reach this limit, then the server will wait until a connection drops before calling .accept() on the socket again.
The change would require guarding the listener.accept() call with a semaphore here and passing the permit of that semaphore to serve_connectionhere.
I'm happy to make a PR if the contribution is welcome
The text was updated successfully, but these errors were encountered:
Add
tonic::transport::Server::max_concurrent_connections(limit: usize)
which limits the number of concurrent connections that are allowed to be served at the same time. If we reach this limit, then the server will wait until a connection drops before calling.accept()
on the socket again.The change would require guarding the
listener.accept()
call with a semaphore here and passing the permit of that semaphore toserve_connection
here.I'm happy to make a PR if the contribution is welcome
The text was updated successfully, but these errors were encountered: