Use TLS record limit for REALITY target buffer#35
Conversation
|
Hi maintainers, this is my first contribution to REALITY. I kept the change intentionally small by reusing the existing TLS constants instead of introducing another literal buffer size. If you prefer a dedicated constant name, I am happy to adjust the patch. |
|
Reviewed this against #33 on current The steal-handshake reader parses the target's response one TLS record at a time: It's also the ceiling REALITY already enforces on its own record reader ( By comparison, #33's Builds cleanly against current |
Related to XTLS/Xray-core#6356.
Summary
REALITY currently uses a hardcoded 8192-byte buffer size for target TLS records.
This patch replaces the hardcoded value with the existing TLS record bound: