Mercurial > hg > nginx
annotate src/event/quic/bpf/makefile @ 9027:f9d7930d0eed quic
HTTP/3: skip empty request body buffers (ticket #2374).
When client DATA frame header and its content come in different QUIC packets,
it may happen that only the header is processed by the first
ngx_http_v3_request_body_filter() call. In this case an empty request body
buffer is added to r->request_body->bufs, which is later reused in a
subsequent ngx_http_v3_request_body_filter() call without being removed from
the body chain. As a result, rb->request_body->bufs ends up with two copies of
the same buffer.
The fix is to avoid adding empty request body buffers to r->request_body->bufs.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Wed, 03 Aug 2022 16:59:51 +0400 |
parents | 7df607cb2d11 |
children |
rev | line source |
---|---|
8676 | 1 CFLAGS=-O2 -Wall |
2 | |
3 LICENSE=BSD | |
4 | |
5 PROGNAME=ngx_quic_reuseport_helper | |
6 RESULT=ngx_event_quic_bpf_code | |
7 DEST=../$(RESULT).c | |
8 | |
9 all: $(RESULT) | |
10 | |
11 $(RESULT): $(PROGNAME).o | |
12 LICENSE=$(LICENSE) PROGNAME=$(PROGNAME) bash ./bpfgen.sh $< > $@ | |
13 | |
14 DEFS=-DPROGNAME=\"$(PROGNAME)\" \ | |
15 -DLICENSE_$(LICENSE) \ | |
16 -DLICENSE=\"$(LICENSE)\" \ | |
17 | |
18 $(PROGNAME).o: $(PROGNAME).c | |
19 clang $(CFLAGS) $(DEFS) -target bpf -c $< -o $@ | |
20 | |
21 install: $(RESULT) | |
22 cp $(RESULT) $(DEST) | |
23 | |
24 clean: | |
25 @rm -f $(RESULT) *.o | |
26 | |
27 debug: $(PROGNAME).o | |
28 llvm-objdump -S -no-show-raw-insn $< | |
29 | |
30 .DELETE_ON_ERROR: |