Commit cfb5825
committed
tests: fix stream get_upstream_ssl_pointer test for the log phase.
TEST 31 in t/stream/ssl.t relied on the previous 'not ssl' bug in
ngx.ssl.get_upstream_ssl_pointer(), which never detected a NULL cdata
and so masked that the upstream connection is already released by the
time log_by_lua runs in the stream subsystem. With the NULL check fixed
the API now correctly returns 'not upstream' in that phase.
Update the test to assert the real behaviour (and guard against the
NULL-detection regression) instead of expecting a stale 'session reused:
false' from ssl_session_reused() on a NULL pointer.1 parent a60ab0e commit cfb5825
1 file changed
Lines changed: 8 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2517 | 2517 | | |
2518 | 2518 | | |
2519 | 2519 | | |
2520 | | - | |
| 2520 | + | |
2521 | 2521 | | |
2522 | | - | |
| 2522 | + | |
| 2523 | + | |
| 2524 | + | |
2523 | 2525 | | |
2524 | 2526 | | |
2525 | 2527 | | |
| |||
2537 | 2539 | | |
2538 | 2540 | | |
2539 | 2541 | | |
2540 | | - | |
2541 | | - | |
| 2542 | + | |
| 2543 | + | |
2542 | 2544 | | |
2543 | 2545 | | |
2544 | 2546 | | |
2545 | 2547 | | |
2546 | 2548 | | |
2547 | 2549 | | |
2548 | 2550 | | |
2549 | | - | |
2550 | | - | |
| 2551 | + | |
| 2552 | + | |
2551 | 2553 | | |
2552 | 2554 | | |
2553 | 2555 | | |
| |||
0 commit comments