Description

Create new Limits, limiting request processing.

`streamRequestLimit` limits the amount of stream requests but works together with `requestLimit` meaning that we can handle `requestLimit` requests of any type, but no more than

`streamRequestLimit` of the streaming kind. Say `streamRequestLimit=5` and `requestLimit=10`, and we are currently processing 5 streaming requests, we can handle an additional 5 buffered requests, but no more streaming requests.

- If both `requestLimit` and `streamRequestLimit` is 0, buffer requests are not limited and

stream requests are disabled.

- If `streamRequestLimit` is 0, buffer requests are limited to `requestLimit` and stream

requests are disabled.

- If `requestLimit` is 0, buffer requests aren't limited, but stream requests are limited

to `streamRequestLimit`.

NewLimits is referenced in 2 repositories

github.com/rsms/gotalk

...