Originally Posted By: tontito
Correct!

Now imagine you need to write that on another socket that has it's sq is more then half full.

I was trying to make this work without having to store data in a hashtable until the other socket sq is a little bit more empty.

Regards


Even if the send and receive queues are the exact same size, you will have to deal with this issue because you can't guarantee there will be enough room in the send queue for the amount of data you are pulling from the receive queue.

In other words, if you don't use a hash table when data overflows, you will lose data.