From owner-freebsd-hackers Thu Nov 14 14:50:30 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id OAA13615 for hackers-outgoing; Thu, 14 Nov 1996 14:50:30 -0800 (PST) Received: from brasil.moneng.mei.com (brasil.moneng.mei.com [151.186.109.160]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id OAA13581 for ; Thu, 14 Nov 1996 14:50:16 -0800 (PST) Received: (from jgreco@localhost) by brasil.moneng.mei.com (8.7.Beta.1/8.7.Beta.1) id QAA26418; Thu, 14 Nov 1996 16:48:09 -0600 From: Joe Greco Message-Id: <199611142248.QAA26418@brasil.moneng.mei.com> Subject: Re: Sockets question... To: scrappy@ki.net (Marc G. Fournier) Date: Thu, 14 Nov 1996 16:48:09 -0600 (CST) Cc: jdp@polstra.com, hackers@FreeBSD.org In-Reply-To: from "Marc G. Fournier" at Nov 14, 96 02:44:03 pm X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-hackers@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk > 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