[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <488E63DD.4020406@jeffray.co.uk>
Date: Tue, 29 Jul 2008 01:27:09 +0100
From: Ian Jeffray <ian@...fray.co.uk>
To: Jay Cliburn <jacliburn@...lsouth.net>
CC: netdev@...r.kernel.org
Subject: Re: sendfile() behavior while troubleshooting netdevice
Jay Cliburn wrote:
> I'm troubleshooting the problem reported here and I need some help:
> http://lkml.org/lkml/2008/7/15/325.
[snip]
> The last round came up short 8 bytes. Any idea why? Client and server
> source code attached.
>
> It doesn't matter which host is the server or client; data is lost
> either way.
Because you send() a strlen() amount of data for the filesize,
but recv() a sizeof(cfsize) amount of data? I supect 8 bytes
is being sucked up in your first recv(). Try sending a fixed
size block for the file size.
Ian.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists