diff options
author | Loïc Hoguin <[email protected]> | 2017-12-12 16:57:05 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2017-12-12 16:57:05 +0100 |
commit | 576e2d21118829dbc018836c87dddb9037e9d3bf (patch) | |
tree | 71da732fc1518ce2b45277abf4d8601524378a54 /src/cowboy_http2.erl | |
parent | eafca21198b08dfa356cb9b1ec87f80375a2af23 (diff) | |
download | cowboy-576e2d21118829dbc018836c87dddb9037e9d3bf.tar.gz cowboy-576e2d21118829dbc018836c87dddb9037e9d3bf.tar.bz2 cowboy-576e2d21118829dbc018836c87dddb9037e9d3bf.zip |
Don't badmatch on HTTP/2 preface's Transport:send
Send errors produce annoying logs and we notice the connection
is gone later on anyway.
Diffstat (limited to 'src/cowboy_http2.erl')
-rw-r--r-- | src/cowboy_http2.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cowboy_http2.erl b/src/cowboy_http2.erl index 28ab37d..1382a46 100644 --- a/src/cowboy_http2.erl +++ b/src/cowboy_http2.erl @@ -200,7 +200,7 @@ init(Parent, Ref, Socket, Transport, Opts, Peer, Sock, Cert, Buffer, _Settings, preface(#state{socket=Socket, transport=Transport, next_settings=Settings}) -> %% We send next_settings and use defaults until we get a ack. - ok = Transport:send(Socket, cow_http2:settings(Settings)). + Transport:send(Socket, cow_http2:settings(Settings)). preface_timeout(Opts) -> PrefaceTimeout = maps:get(preface_timeout, Opts, 5000), |