File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -287,7 +287,11 @@ internal final class GRPCIdleHandler: ChannelInboundHandler {
287
287
let frame = self . unwrapInboundIn ( data)
288
288
289
289
switch frame. payload {
290
- case . goAway:
290
+ case let . goAway( lastStreamID, errorCode, _) :
291
+ self . stateMachine. logger. debug ( " received GOAWAY frame " , metadata: [
292
+ MetadataKey . h2GoAwayLastStreamID: " \( Int ( lastStreamID) ) " ,
293
+ MetadataKey . h2GoAwayError: " \( errorCode. networkCode) " ,
294
+ ] )
291
295
self . perform ( operations: self . stateMachine. receiveGoAway ( ) )
292
296
case let . settings( . settings( settings) ) :
293
297
self . perform ( operations: self . stateMachine. receiveSettings ( settings) )
Original file line number Diff line number Diff line change @@ -29,6 +29,8 @@ enum MetadataKey {
29
29
static let h2Payload = " h2_payload "
30
30
static let h2Headers = " h2_headers "
31
31
static let h2DataBytes = " h2_data_bytes "
32
+ static let h2GoAwayError = " h2_goaway_error "
33
+ static let h2GoAwayLastStreamID = " h2_goaway_last_stream_id "
32
34
33
35
static let error = " error "
34
36
}
You can’t perform that action at this time.
0 commit comments