rate limit log
This commit is contained in:
parent
8718e4197b
commit
7d54cd8e5d
|
@ -1 +1 @@
|
||||||
Subproject commit 29fffdad97e5c0e336d2eaa5c1f03ea15996dd5a
|
Subproject commit 8259afcaa1ad223850d2761d1b06cf92b351c576
|
|
@ -286,7 +286,7 @@ rate_limit(Size, State = #client_state{rate_limit = Rl}) ->
|
||||||
{0, Rl1} ->
|
{0, Rl1} ->
|
||||||
run_socket(State#client_state{conn_state = running, rate_limit = Rl1});
|
run_socket(State#client_state{conn_state = running, rate_limit = Rl1});
|
||||||
{Pause, Rl1} ->
|
{Pause, Rl1} ->
|
||||||
?LOG(error, "Rate limiter pause for ~p", [Size, Pause], State),
|
?LOG(error, "Rate limiter pause for ~p", [Pause], State),
|
||||||
erlang:send_after(Pause, self(), activate_sock),
|
erlang:send_after(Pause, self(), activate_sock),
|
||||||
State#client_state{conn_state = blocked, rate_limit = Rl1}
|
State#client_state{conn_state = blocked, rate_limit = Rl1}
|
||||||
end.
|
end.
|
||||||
|
|
Loading…
Reference in New Issue