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
In testing TokenBucketv2 by sending curl requests from a single machine i found using r.remoteAddr as UID gave a different value everytime as a new port was assigned for each http request. The throttle therefore was not envoked.
To test i truncated r.remote Addr to just IP by removing port:
import strings
replacing r.remoteAddr in the call to throttled with strings.Split(r.RemoteAddr, ":")[0]
The text was updated successfully, but these errors were encountered:
In testing TokenBucketv2 by sending curl requests from a single machine i found using r.remoteAddr as UID gave a different value everytime as a new port was assigned for each http request. The throttle therefore was not envoked.
To test i truncated r.remote Addr to just IP by removing port:
import strings
replacing r.remoteAddr in the call to throttled with strings.Split(r.RemoteAddr, ":")[0]
The text was updated successfully, but these errors were encountered: