mirror of
https://github.com/ValdikSS/GoodbyeDPI.git
synced 2025-12-18 13:24:36 +03:00
Apply HTTP Persistent fragmentation only for sufficiently large packets
This commit is contained in:
@@ -533,7 +533,9 @@ int main(int argc, char *argv[]) {
|
|||||||
* ack number of received packet and retransmitting missing part again,
|
* ack number of received packet and retransmitting missing part again,
|
||||||
* but it's better to send it anyway since it eliminates one RTT.
|
* 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(
|
ppIpHdr->Length = htons(
|
||||||
ntohs(ppIpHdr->Length) -
|
ntohs(ppIpHdr->Length) -
|
||||||
packet_dataLen + http_fragment_size
|
packet_dataLen + http_fragment_size
|
||||||
|
|||||||
Reference in New Issue
Block a user