[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-users] Possible TCP enqueue improvement
From: |
Bob Grice |
Subject: |
[lwip-users] Possible TCP enqueue improvement |
Date: |
Thu, 24 Nov 2005 16:25:17 -0000 |
I've noticed a minor
issue in tcp_enqueue that results in segments < mss being
sent.
The enqueue function
first splits the received data into segments all of mss size apart from the
last, it then checks the last segment on the unsent queue and attempts to join
the segments if the last is also < mss.
Now, this works a
treat when you are doing small writes, however if you do a writes (worst case is
mss bytes +1) you end up with <mss> <1 byte> <mss> <1
byte> rather than <mss> <mss> <2
bytes>.
Basically, the code
needs to check the space available in the last of the unsent before it splits
the new data into mss sized units, but I think this would need a fairly major
re-arrangement of the existing function to
achieve.
- [lwip-users] Possible TCP enqueue improvement,
Bob Grice <=