forked from quic-go/quic-go
expose basic connection stats via Conn.ConnectionStats (#5281)
* Add ConnectionStats * remove for loop * Add comments * Update comments --------- Co-authored-by: Marco Munizaga <git@marcopolo.io>
This commit is contained in:
@@ -2,6 +2,7 @@ package protocol
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"sync/atomic"
|
||||
"time"
|
||||
)
|
||||
|
||||
@@ -95,6 +96,8 @@ func (e ECN) String() string {
|
||||
// A ByteCount in QUIC
|
||||
type ByteCount int64
|
||||
|
||||
type AtomicByteCount atomic.Int64
|
||||
|
||||
// MaxByteCount is the maximum value of a ByteCount
|
||||
const MaxByteCount = ByteCount(1<<62 - 1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user