Commit 78334c9
committed
feat(l4): make Stream::rewind() public for protocol detection
Make the rewind() method public so that PreTlsProcess implementations
can put data back onto the stream when the data doesn't match the
expected protocol signature.
This is needed for PROXY protocol detection where the pre-TLS handler
reads initial bytes to check for the PROXY signature, and must rewind
if the data is not PROXY protocol so TLS can proceed normally.1 parent 45e6402 commit 78334c9
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
445 | 445 | | |
446 | 446 | | |
447 | 447 | | |
448 | | - | |
449 | | - | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
450 | 453 | | |
451 | 454 | | |
452 | 455 | | |
| |||
0 commit comments