From 576e2d21118829dbc018836c87dddb9037e9d3bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Tue, 12 Dec 2017 16:57:05 +0100 Subject: 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. --- src/cowboy_http2.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cowboy_http2.erl') 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), -- cgit v1.2.3