Mercurial > hg > nginx-quic
comparison src/event/quic/ngx_event_quic_connection.h @ 8644:6204120cf37f quic
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.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Wed, 13 Oct 2021 14:41:46 +0300 |
parents | fe919fd63b0b |
children | 404de224517e |
comparison
equal
deleted
inserted
replaced
8643:72b304f6207c | 8644:6204120cf37f |
---|---|
234 #endif | 234 #endif |
235 | 235 |
236 ngx_quic_streams_t streams; | 236 ngx_quic_streams_t streams; |
237 ngx_quic_congestion_t congestion; | 237 ngx_quic_congestion_t congestion; |
238 | 238 |
239 off_t received; | |
240 | |
239 ngx_uint_t error; | 241 ngx_uint_t error; |
240 enum ssl_encryption_level_t error_level; | 242 enum ssl_encryption_level_t error_level; |
241 ngx_uint_t error_ftype; | 243 ngx_uint_t error_ftype; |
242 const char *error_reason; | 244 const char *error_reason; |
243 | 245 |