Commit d073cc5
test(appsec): bound tracer shutdown in test app endpoints DD_U55XLN
The /shutdown endpoints called tracer.shutdown() with no timeout (django) or
with the same 10s the client uses (flask). Under a gunicorn gevent worker the
flush can block the hub the writer needs, so the request read-timed-out and the
test failed with the server still alive and the port still bound.
Bound both flushes to 5s, below the client's 10s timeout.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 5fe261d commit d073cc5
2 files changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
337 | 337 | | |
338 | 338 | | |
339 | 339 | | |
340 | | - | |
| 340 | + | |
| 341 | + | |
341 | 342 | | |
342 | 343 | | |
343 | 344 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
0 commit comments