Browse Source

Apply HTTP Persistent fragmentation only for sufficiently large packets

ipv6
ValdikSS 7 years ago
parent
commit
a88ab4337e
  1. 4
      goodbyedpi.c

4
goodbyedpi.c

@ -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…
Cancel
Save