Skip to content

Commit

Permalink
expose GSO usage through ConnectionState (#4083)
Browse files Browse the repository at this point in the history
  • Loading branch information
birneee committed Sep 14, 2023
1 parent 7599f81 commit 37a3c41
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions connection.go
Expand Up @@ -673,6 +673,7 @@ func (s *connection) ConnectionState() ConnectionState {
cs := s.cryptoStreamHandler.ConnectionState()
s.connState.TLS = cs.ConnectionState
s.connState.Used0RTT = cs.Used0RTT
s.connState.GSO = s.conn.capabilities().GSO
return s.connState
}

Expand Down
2 changes: 2 additions & 0 deletions interface.go
Expand Up @@ -345,4 +345,6 @@ type ConnectionState struct {
Used0RTT bool
// Version is the QUIC version of the QUIC connection.
Version VersionNumber
// GSO says if generic segmentation offload is used
GSO bool
}

0 comments on commit 37a3c41

Please sign in to comment.