mirror of
https://github.com/ValdikSS/GoodbyeDPI.git
synced 2025-02-01 22:20:34 +00:00
Apply HTTP Persistent fragmentation only for sufficiently large packets
This commit is contained in:
parent
582503452f
commit
a88ab4337e
@ -533,7 +533,9 @@ int main(int argc, char *argv[]) {
|
||||
* ack number of received packet and retransmitting missing part again,
|
||||
* but it's better to send it anyway since it eliminates one RTT.
|
||||
*/
|
||||
if (do_fragment_http_persistent && !http_req_fragmented) {
|
||||
if (do_fragment_http_persistent && !http_req_fragmented &&
|
||||
(packet_dataLen > http_fragment_size)
|
||||
) {
|
||||
ppIpHdr->Length = htons(
|
||||
ntohs(ppIpHdr->Length) -
|
||||
packet_dataLen + http_fragment_size
|
||||
|
Loading…
Reference in New Issue
Block a user