PDA

View Full Version : TCP_CORK


emihaly
04-14-2003, 06:48 AM
heya!

I found something like TCP_CORK! It mean dont send data in buffer until i uncork socket ? Its right?

Uzume
04-14-2003, 06:53 AM
No, not exactly. It means the TCP implementation will still send out data but only completely full TCP frames. Any left over partial frames will remain queued until either more data arrives that completes a frame or the "cork" is unstoppered.

You can think of this as like a _super_ Nagle algorithm that makes all outgoing TCP frames be "efficient".

emihaly
04-14-2003, 07:36 AM
ok, its nice Uncork socket flush data to network, when i finish sending. Is it true?

Uzume
04-15-2003, 10:43 AM
That is how I understand it, yes.