File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -115,6 +115,10 @@ setup-docker:
115115stop :
116116 @docker compose -f $(DOCKER_COMPOSE_MAIN ) down --remove-orphans 2> /dev/null || true
117117ifndef GITHUB_ACTIONS
118+ @# Stop nginx if running
119+ @-[ -f $(PID_FILE) ] && kill -TERM $$(cat $(PID_FILE)) 2>/dev/null || true
120+ @-[ -f $(PID_FILE) ] && rm -f $(PID_FILE) 2>/dev/null || true
121+ @# Stop backend services
118122 @-kill $$(cat /tmp/echo-server.pid 2>/dev/null) 2>/dev/null || true
119123 @-kill $$(cat /tmp/extproc_mock.pid 2>/dev/null) 2>/dev/null || true
120124 @rm -f /tmp/extproc_mock.pid /tmp/echo-server.pid 2>/dev/null || true
@@ -130,10 +134,12 @@ else
130134endif
131135
132136test-docker :
137+ @echo " Building module for NGINX version: $$ (grep 'FROM nginx:' docker/nginx/Dockerfile | head -1 | sed 's/.*nginx://' | sed 's/-.*//')"
133138 docker compose -f $(DOCKER_COMPOSE_MAIN ) up --build -d
134139 DOCKER_ENVIRONMENT=main ./tests/test-config.sh
135140
136141test-local : start-local
142+ @echo " Building module for NGINX version: $$ (nginx -v 2>&1 | sed 's|nginx version: nginx/||')"
137143 ./tests/test-config.sh
138144
139145# Configuration generation
Original file line number Diff line number Diff line change @@ -229,9 +229,8 @@ pub unsafe extern "C" fn bbr_body_read_handler(r: *mut ngx::ffi::ngx_http_reques
229229 // Using default model is normal behavior - no logging needed
230230 }
231231
232- // Body processing complete - continue request phases
233- // Mark body as processed and continue with next phases
234- ( * r) . phase_handler += 1 ;
232+ // Body processing complete - resume NGINX phase processing
233+ // We must call ngx_http_core_run_phases(r) to continue after async body reading
235234 ngx:: ffi:: ngx_http_core_run_phases ( r) ;
236235}
237236
You can’t perform that action at this time.
0 commit comments