lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [lwip-users] Short but speedy writes


From: Matthew Yingling
Subject: RE: [lwip-users] Short but speedy writes
Date: Thu, 5 Oct 2006 14:51:30 -0400

Thanks for the confirmation.  Yes, I am using the raw API.  I was thinking
about the Nagle algorithm for WinSock, but haven't implemented anything yet.

Matthew

-----Original Message-----
From: address@hidden
[mailto:address@hidden Behalf Of
Kieran Mansley
Sent: Thursday, October 05, 2006 3:54 AM
To: address@hidden; Mailing list for lwIP users
Subject: Re: [lwip-users] Short but speedy writes


On Wed, 2006-10-04 at 16:07 -0400, Matthew Yingling wrote:

> My approach was to use tcp_write(), but I have started following it with
> tcp_output() to force the data onto the wire immediately.  Is this the
> correct approach?

Yes.  Sounds like you're using the raw API already, so that is good as
far as performance goes.  Depending on your exact traffic pattern, if
you're using WinSock on the other end you may need to disable the Nagle
algorithm as otherwise it may sit around waiting for more than 8 bytes
before sending anything.  I'm not sure how to do this on Windows.

A packet trace captured using something like ethereal or tcpdump is
usually quite good at seeing where the time is going, and if there are
any large pauses that shouldn't be there.

Hope that helps

Kieran



_______________________________________________
lwip-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/lwip-users





reply via email to

[Prev in Thread] Current Thread [Next in Thread]