Mercurial > hg > nginx-quic
annotate src/core/ngx_rwlock.h @ 8532:b87b7092cedb
Improved logging of invalid headers.
In 71edd9192f24 logging of invalid headers which were rejected with the
NGX_HTTP_PARSE_INVALID_HEADER error was restricted to just the "client
sent invalid header line" message, without any attempts to log the header
itself.
This patch returns logging of the header up to the invalid character and
the character itself. The r->header_end pointer is now properly set
in all cases to make logging possible.
The same logging is also introduced when parsing headers from upstream
servers.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 28 Jun 2021 18:01:20 +0300 |
parents | d1816a2696de |
children |
rev | line source |
---|---|
6101 | 1 |
2 /* | |
3 * Copyright (C) Ruslan Ermilov | |
4 * Copyright (C) Nginx, Inc. | |
5 */ | |
6 | |
7 | |
8 #ifndef _NGX_RWLOCK_H_INCLUDED_ | |
9 #define _NGX_RWLOCK_H_INCLUDED_ | |
10 | |
11 | |
12 #include <ngx_config.h> | |
13 #include <ngx_core.h> | |
14 | |
15 | |
16 void ngx_rwlock_wlock(ngx_atomic_t *lock); | |
17 void ngx_rwlock_rlock(ngx_atomic_t *lock); | |
18 void ngx_rwlock_unlock(ngx_atomic_t *lock); | |
7038
d1816a2696de
Introduced ngx_rwlock_downgrade().
Ruslan Ermilov <ru@nginx.com>
parents:
6101
diff
changeset
|
19 void ngx_rwlock_downgrade(ngx_atomic_t *lock); |
6101 | 20 |
21 | |
22 #endif /* _NGX_RWLOCK_H_INCLUDED_ */ |