Skip to content

Commit 7c23825

Browse files
committed
handle disconnect during stream
1 parent 4be7bf6 commit 7c23825

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/ch/connection.ex

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,10 @@ defmodule Ch.Connection do
331331
end
332332

333333
@impl true
334+
def disconnect(error, {conn, _reader}) do
335+
disconnect(error, conn)
336+
end
337+
334338
def disconnect(_error, conn) do
335339
{:ok = ok, _conn} = HTTP.close(conn)
336340
ok

0 commit comments

Comments
 (0)