From owner-freebsd-hackers Mon Aug 17 08:41:27 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA16888 for freebsd-hackers-outgoing; Mon, 17 Aug 1998 08:41:27 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from bright.fx.genx.net (bright.fx.genx.net [206.64.4.154]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA16867 for ; Mon, 17 Aug 1998 08:41:25 -0700 (PDT) (envelope-from bright@www.hotjobs.com) Received: from localhost (bright@localhost) by bright.fx.genx.net (8.9.1/8.8.8) with SMTP id KAA06318; Mon, 17 Aug 1998 10:07:04 -0500 (EST) (envelope-from bright@hotjobs.com) X-Authentication-Warning: bright.fx.genx.net: bright owned process doing -bs Date: Mon, 17 Aug 1998 10:07:04 -0500 (EST) From: Alfred Perlstein X-Sender: bright@bright.fx.genx.net To: Didier Derny cc: hackers@FreeBSD.ORG, support@yard.de Subject: Re: yard/freebsd (network problem) In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG i don't have time to check this out myself, but you might have some luck with setsockopt() man setsockopt gives some interesting options: SO_SNDLOWAT set minimum count for output SO_RCVLOWAT set minimum count for input SO_SNDTIMEO set timeout value for output SO_RCVTIMEO set timeout value for input ... SO_SNDLOWAT is an option to set the minimum count for output operations. Most output operations process all of the data supplied by the call, de- livering data to the protocol for transmission and blocking as necessary for flow control. Nonblocking output operations will process as much da- ta as permitted subject to flow control without blocking, but will pro- cess no data if flow control does not allow the smaller of the low water mark value or the entire request to be processed. A select(2) operation testing the ability to write to a socket will return true only if the low water mark amount could be processed. The default value for SO_SNDLOWAT is set to a convenient size for network efficiency, often 1024. maybe you can try this? good luck, Alfred Perlstein - Programmer, HotJobs Inc. - www.hotjobs.com -- There are operating systems, and then there's BSD. -- http://www.freebsd.org/ On Mon, 17 Aug 1998, Didier Derny wrote: > Hi, > > I still have the yard/freebsd problem > every program I written with yard/cli worked > fine on linux but failed on FreeBSD > > On FreeBSD, there is a kind of 1 second delay between > the sql statments. > > the problem is solved but setting net.inet.tcp.ack_delayed=1 > > Yard is using normal read/write to talk to the server. > > Is there any flag to set with setsockopt/fcntl... to > get a fast delivry of small packets ? > > we tried TCP_NODELAY last week but without any result. > > Thanks for your help, > > -- > Didier Derny > didier@omnix.net > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message