We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f87a93e commit a079db1Copy full SHA for a079db1
lib/Protocol/HTTP2/Frame/Goaway.pm
@@ -22,12 +22,18 @@ sub decode {
22
. const_name( 'errors', $error_code )
23
. " last stream is $last_stream_id\n" );
24
25
- tracer->debug( "additional debug data: "
26
- . bin2hex( substr( $$buf_ref, $buf_offset + 8 ) )
27
- . "\n" )
28
- if $length - 8 > 0;
+ my $goaway = {
+ error => $error_code,
+ last_stream_id => $last_stream_id
+ };
29
+
30
+ if ( $length > 8 ) {
31
+ my $data = substr( $$buf_ref, $buf_offset + 8 );
32
+ $goaway->{data} = $data;
33
+ tracer->debug( "additional debug data: $data\n" )
34
+ }
35
- $con->goaway(1);
36
+ $con->goaway($goaway);
37
38
return $length;
39
}
0 commit comments