aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_http2.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2017-12-12 16:57:05 +0100
committerLoïc Hoguin <[email protected]>2017-12-12 16:57:05 +0100
commit576e2d21118829dbc018836c87dddb9037e9d3bf (patch)
tree71da732fc1518ce2b45277abf4d8601524378a54 /src/cowboy_http2.erl
parenteafca21198b08dfa356cb9b1ec87f80375a2af23 (diff)
downloadcowboy-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.erl2
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),