aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Homutov <vl@nginx.com>2021-04-28 13:37:18 +0300
committerVladimir Homutov <vl@nginx.com>2021-04-28 13:37:18 +0300
commitf36ebdc3cd2cfd2041af8d7a3d7986a434d9c080 (patch)
tree013c7626a2a20a4aeaace2c537f5a72e35eeab30
parentc4f5b50c47a867dfb72f80a5c3dd0e87508e0502 (diff)
downloadnginx-f36ebdc3cd2cfd2041af8d7a3d7986a434d9c080.tar.gz
nginx-f36ebdc3cd2cfd2041af8d7a3d7986a434d9c080.zip
QUIC: fixed build with NGX_QUIC_DEBUG_ALLOC enabled.
-rw-r--r--src/event/quic/ngx_event_quic_connection.h15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/event/quic/ngx_event_quic_connection.h b/src/event/quic/ngx_event_quic_connection.h
index d5e32c66a..2e1206129 100644
--- a/src/event/quic/ngx_event_quic_connection.h
+++ b/src/event/quic/ngx_event_quic_connection.h
@@ -11,6 +11,12 @@
#include <ngx_core.h>
#include <ngx_event.h>
+
+/* #define NGX_QUIC_DEBUG_PACKETS */ /* dump packet contents */
+/* #define NGX_QUIC_DEBUG_FRAMES */ /* dump frames contents */
+/* #define NGX_QUIC_DEBUG_ALLOC */ /* log frames and bufs alloc */
+/* #define NGX_QUIC_DEBUG_CRYPTO */
+
typedef struct ngx_quic_connection_s ngx_quic_connection_t;
typedef struct ngx_quic_server_id_s ngx_quic_server_id_t;
typedef struct ngx_quic_client_id_s ngx_quic_client_id_t;
@@ -253,19 +259,10 @@ void ngx_quic_discard_ctx(ngx_connection_t *c,
void ngx_quic_close_connection(ngx_connection_t *c, ngx_int_t rc);
void ngx_quic_shutdown_quic(ngx_connection_t *c);
-
-/********************************* DEBUG *************************************/
-
#if (NGX_DEBUG)
void ngx_quic_connstate_dbg(ngx_connection_t *c);
#else
#define ngx_quic_connstate_dbg(c)
#endif
-
-/* #define NGX_QUIC_DEBUG_PACKETS */ /* dump packet contents */
-/* #define NGX_QUIC_DEBUG_FRAMES */ /* dump frames contents */
-/* #define NGX_QUIC_DEBUG_ALLOC */ /* log frames and bufs alloc */
-/* #define NGX_QUIC_DEBUG_CRYPTO */
-
#endif /* _NGX_EVENT_QUIC_CONNECTION_H_INCLUDED_ */