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: Kieran Mansley
Subject: Re: [lwip-users] Short but speedy writes
Date: Thu, 05 Oct 2006 08:53:50 +0100

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





reply via email to

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