Mercurial > hg > nginx
annotate src/event/quic/bpf/makefile @ 9307:3c71158f5a34 default tip
Keepalive connections now respect lingering_timeout on shutdown.
During graceful shutdown keepalive connections are now closed only after
at least lingering_timeout of inactivity. To do so, c->idle is only
set on keepalive connections after lingering_timeout expires.
This ensures that the connection close race will less likely result in
connections being reset when a client sends a request at the same time
when the connection is closed by ngx_close_idle_connections() during
graceful shutdown.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Wed, 31 Jul 2024 17:50:58 +0300 |
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: |