feat(quic): adapt to new quicer API.

This commit is contained in:
William Yang 2021-05-11 22:52:25 +02:00
parent 5356668eac
commit 14614fbe33
2 changed files with 3 additions and 1 deletions

View File

@ -150,6 +150,8 @@ start_listener(quic, ListenOn, Options) ->
ListenOpts = [ {cert, proplists:get_value(certfile, SSLOpts)}
, {key, proplists:get_value(keyfile, SSLOpts)}
, {alpn, ["mqtt"]}
, {peer_unidi_stream_count, 1}
, {peer_bidi_stream_count, 10}
, {conn_acceptors, 32}
],
ConnectionOpts = [ {conn_callback, emqx_quic_connection}

View File

@ -49,7 +49,7 @@ peercert(_S) ->
getstat(Socket, Stats) ->
case quicer:getstat(Socket, Stats) of
{error, _} -> {error, closed};
Res -> {ok, Res}
Res -> Res
end.
setopts(_Socket, _Opts) ->