fix(emqx_mgmt): catch OOM shutdown exits properly when calling a client conn process
The exit reason is expected to include gen_server `Location`: `{{shutdown, OOMInfo}, Location}`.
This commit is contained in:
parent
2e528d1dd8
commit
f5a820cb10
|
@ -711,5 +711,7 @@ call_conn(ConnMod, Pid, Req) ->
|
|||
exit:R when R =:= shutdown; R =:= normal ->
|
||||
{error, shutdown};
|
||||
exit:{R, _} when R =:= shutdown; R =:= noproc ->
|
||||
{error, shutdown};
|
||||
exit:{{shutdown, _OOMInfo}, _Location} ->
|
||||
{error, shutdown}
|
||||
end.
|
||||
|
|
Loading…
Reference in New Issue