go-siris / siris

DEPRECATED: The community driven fork of Iris. The fastest web framework for Golang!
Other
142 stars 16 forks source link

Allow support for a LimitListener #51

Open theodesp opened 7 years ago

theodesp commented 7 years ago

Note: for support questions, please use our gitter channel or stackoverflow. This repository's issues are reserved for feature requests and bug reports.

wher you can wrap the net.Listener struct to accept a limit so we have a bounded number of active connections per server.

Dexus commented 7 years ago

Are you able to implement it with test and coverage?

theodesp commented 7 years ago

I will work on this weekend

theodesp commented 7 years ago

I would like to also enhance the ticket scope by providing options for:

  1. Limiting the Server connections in a global way
  2. Limiting the Server connections from a particular client.ip, request.host or request.header.X-Header
  3. Expose options from a config file
  4. On connection limit, we should respond with https://httpstatuses.com/429
  5. Middleware support.
Dexus commented 7 years ago

I like it. I'm looking forward to testing it.

Dexus commented 7 years ago

@theodesp any update?