Date: Thu, 14 Nov 1996 16:48:09 -0600 (CST) From: Joe Greco <jgreco@brasil.moneng.mei.com> To: scrappy@ki.net (Marc G. Fournier) Cc: jdp@polstra.com, hackers@FreeBSD.org Subject: Re: Sockets question... Message-ID: <199611142248.QAA26418@brasil.moneng.mei.com> In-Reply-To: <Pine.NEB.3.95.961114144229.5812I-100000@quagmire.ki.net> from "Marc G. Fournier" at Nov 14, 96 02:44:03 pm
next in thread | previous in thread | raw e-mail | index | archive | help
> On Thu, 14 Nov 1996, John Polstra wrote: > > > > Basically, the server opens up a binary file and sends the data > > > to the client. The client is connecting to the server no problem, but I'm > > > don't seem to be able to send >79 bytes across the socket > > > > What happens? Does it hang? Is data lost? It should work fine. > > At 1024, data seems to be lost. I send 1023 bytes across, and > receive 4...send 1023, receive 907...I send across 100 packets, receive > 2... > > As soon as I go to 512 or 80 byte writes, I can pound at it > repeatedly and get the complete image across every time, no errors. Are you checking the return value from write() to make sure it actually thinks that N bytes were _written_? ... JG
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199611142248.QAA26418>