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,
|
* 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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue