diff options
| author | Roman Arutyunyan <arut@nginx.com> | 2021-10-13 14:41:46 +0300 |
|---|---|---|
| committer | Roman Arutyunyan <arut@nginx.com> | 2021-10-13 14:41:46 +0300 |
| commit | 6e58593a593804cfad04a8ddbea086fec1872ef0 (patch) | |
| tree | f8f9860d335f541c366d0a14151691e4a4d425fb /src/event/quic/ngx_event_quic_connection.h | |
| parent | 434f11bf3f4c9c8466a946c775441ecd6f768c13 (diff) | |
| download | nginx-6e58593a593804cfad04a8ddbea086fec1872ef0.tar.gz nginx-6e58593a593804cfad04a8ddbea086fec1872ef0.tar.bz2 | |
QUIC: traffic-based flood detection.
With this patch, all traffic over a QUIC connection is compared to traffic
over QUIC streams. As long as total traffic is many times larger than stream
traffic, we consider this to be a flood.
Diffstat (limited to 'src/event/quic/ngx_event_quic_connection.h')
| -rw-r--r-- | src/event/quic/ngx_event_quic_connection.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/event/quic/ngx_event_quic_connection.h b/src/event/quic/ngx_event_quic_connection.h index f3de5b136..b58e9f586 100644 --- a/src/event/quic/ngx_event_quic_connection.h +++ b/src/event/quic/ngx_event_quic_connection.h @@ -236,6 +236,8 @@ struct ngx_quic_connection_s { ngx_quic_streams_t streams; ngx_quic_congestion_t congestion; + off_t received; + ngx_uint_t error; enum ssl_encryption_level_t error_level; ngx_uint_t error_ftype; |
