Added tcp fragmentation for freedom outbound (#2021)

* Added tcp fragmentation for freedom outbound

* Added TCP_NODELAY to outbound sockopt

* Changed fragment parameters to accept ranges and changed strategy to use length

* Changed packetNumber to packets, supporting range.

* Refactored the freedom fragment logic

* Refine Write()

---------

Co-authored-by: RPRX <63339210+RPRX@users.noreply.github.com>
This commit is contained in:
sambali9 2023-05-22 04:59:58 +02:00 committed by GitHub
parent c80646a045
commit 5f5ae37571
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 392 additions and 71 deletions

View file

@ -108,4 +108,6 @@ message SocketConfig {
int32 tcp_user_timeout = 16;
int32 tcp_max_seg = 17;
bool tcp_no_delay = 18;
}