From owner-freebsd-java Wed Feb 25 09:41:05 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA03404 for freebsd-java-outgoing; Wed, 25 Feb 1998 09:41:05 -0800 (PST) (envelope-from owner-freebsd-java@FreeBSD.ORG) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA03318 for ; Wed, 25 Feb 1998 09:40:42 -0800 (PST) (envelope-from alf@narcisa.sax.de) Received: (from uucp@localhost) by sax.sax.de (8.8.8/8.8.8) with UUCP id SAA11491 for freebsd-java@FreeBSD.ORG; Wed, 25 Feb 1998 18:40:35 +0100 (CET) (envelope-from alf@narcisa.sax.de) Received: (from alf@localhost) by narcisa.sax.de (8.8.7/8.8.7) id WAA00432; Tue, 24 Feb 1998 22:09:12 +0100 (CET) (envelope-from alf) Date: Tue, 24 Feb 1998 22:09:12 +0100 (CET) Message-Id: <199802242109.WAA00432@narcisa.sax.de> From: Alfredo Herrera Hernandez MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: freebsd-java@FreeBSD.ORG Subject: Re: Socket IO problems using Java Sockets on FreeBSD In-Reply-To: References: <34F1F777.BEC2F180@internetdevices.com> X-Mailer: VM 6.31 under 20.2 XEmacs Lucid Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Alex Boisvert writes: > On Mon, 23 Feb 1998, Iyer Mahadevan wrote: > > I noticed some serious performance problems with Java Socket I/O. [...] > The second alternative (which I have never tried), is to use the > TCP_NODELAY option of sockets which completely disables the > fragmentation-reduction algorithm. Have a look at the SocketOptions class > in java.net.* This is a new feature implemented in JDK 1.1.x. I've been using TCP_NODELAY for a while and it works fine at least under Solaris, FreeBSD and Win/NT. I've found this alternative more elegant than having flush()'es all over the code. best wishes, Alfredo. -- _____________________________________________________________________ Alfredo Herrera Hernandez alf@narcisa.sax.de http://www.sax.de/~alf/ pgp key available fingering alf@sax.sax.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message