Commit 279646f
fix(haproxy): gate http-keep-alive on http mode; clean up keep-alive test
Address Copilot review findings on PR #108:
- Only emit `option http-keep-alive` when backend.Mode == "http"; emitting
it for tcp-mode backends produces an invalid stanza.
- Drop BackendSSL from the keep-alive test (it was generating `verify`
with an empty value, unrelated to keep-alive). Add a separate test
asserting the directive is suppressed for tcp-mode backends.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent f77c4f3 commit 279646f
2 files changed
Lines changed: 21 additions & 2 deletions
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
| 123 | + | |
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| |||
Lines changed: 20 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
469 | 469 | | |
470 | 470 | | |
471 | 471 | | |
472 | | - | |
473 | 472 | | |
474 | 473 | | |
475 | 474 | | |
| |||
480 | 479 | | |
481 | 480 | | |
482 | 481 | | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
0 commit comments