File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -1408,9 +1408,7 @@ defmodule Mint.HTTP2 do
1408
1408
1409
1409
defp handle_consumed_all_frames ( % { state: state } = conn , responses ) do
1410
1410
case state do
1411
- { :goaway , :no_error , debug_data } ->
1412
- message = "Server closed connection normally (with debug data: #{ inspect ( debug_data ) } )"
1413
- log ( conn , :debug , message )
1411
+ { :goaway , :no_error , _debug_data } ->
1414
1412
{ conn , responses }
1415
1413
1416
1414
{ :goaway , error_code , debug_data } ->
@@ -1995,6 +1993,14 @@ defmodule Mint.HTTP2 do
1995
1993
{ [ { :error , stream . ref , wrap_error ( :unprocessed ) } ] , conn_acc }
1996
1994
end )
1997
1995
1996
+ message =
1997
+ case error_code do
1998
+ :no_error -> "Server closed connection normally"
1999
+ _other -> "Server closed connection with error #{ inspect ( error_code ) } "
2000
+ end
2001
+
2002
+ log ( conn , :debug , "#{ message } (with debug data: #{ inspect ( debug_data ) } )" )
2003
+
1998
2004
conn = put_in ( conn . state , { :goaway , error_code , debug_data } )
1999
2005
{ conn , unprocessed_request_responses ++ responses }
2000
2006
end
You can’t perform that action at this time.
0 commit comments