tres/secure_channel: Fix to avoid crash when receive malformed packet
This commit is contained in:
parent
bc3c65cfa9
commit
6bba512271
5 changed files with 66 additions and 29 deletions
|
|
@ -35,7 +35,7 @@ defmodule Tres.SwitchRegistry do
|
|||
|
||||
def blocking_send_message(message, {_dpid, _aux_id} = datapath_id) do
|
||||
[{pid, _} | _] = Registry.lookup(__MODULE__, datapath_id)
|
||||
:gen_statem.call(pid, {:send_message, message}, 500)
|
||||
:gen_statem.call(pid, {:send_message, message}, 5000)
|
||||
catch
|
||||
:exit, {:timeout, _} ->
|
||||
{:error, :timeout}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue