Browse Source

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.
Loïc Hoguin 7 years ago
parent
commit
576e2d2111
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/cowboy_http2.erl

+ 1 - 1
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),