Date: Mon, 17 Aug 1998 10:07:04 -0500 (EST) From: Alfred Perlstein <bright@www.hotjobs.com> To: Didier Derny <didier@omnix.net> Cc: hackers@FreeBSD.ORG, support@yard.de Subject: Re: yard/freebsd (network problem) Message-ID: <Pine.BSF.3.96.980817100500.354B-100000@bright.fx.genx.net> In-Reply-To: <Pine.BSF.3.96.980817095105.15897F-100000@omnix.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.980817100500.354B-100000>