From owner-freebsd-hackers Thu Nov 14 15:48:46 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id PAA21328 for hackers-outgoing; Thu, 14 Nov 1996 15:48:46 -0800 (PST) Received: from quagmire.ki.net (root@quagmire.ki.net [205.150.102.1]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id PAA21131 for ; Thu, 14 Nov 1996 15:48:04 -0800 (PST) Received: from localhost (scrappy@localhost) by quagmire.ki.net (8.8.2/8.7.5) with SMTP id SAA11803; Thu, 14 Nov 1996 18:47:16 -0500 (EST) Date: Thu, 14 Nov 1996 18:47:16 -0500 (EST) From: "Marc G. Fournier" To: Joe Greco cc: jdp@polstra.com, hackers@FreeBSD.org Subject: Re: Sockets question... In-Reply-To: <199611142248.QAA26418@brasil.moneng.mei.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk On Thu, 14 Nov 1996, Joe Greco wrote: > > 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_? > *sigh* Marc G. Fournier scrappy@ki.net Systems Administrator @ ki.net scrappy@freebsd.org