From trond@basefarm.no Thu Jun 3 01:04:44 2004 Received: from vinterbro.com (oslo-dhcp-252-187.bluecom.no [62.101.252.187]) by underdog.stansell.org (8.12.11/8.12.11) with ESMTP id i5384fuB003574 for ; Thu, 3 Jun 2004 01:04:42 -0700 (PDT) Received: by vinterbro.com (Postfix, from userid 4071) id 73EA76FE30; Thu, 3 Jun 2004 10:04:40 +0200 (CEST) From: Trond Hagen To: users@conserver.com Content-Type: text/plain Content-Transfer-Encoding: 7bit Message-Id: <1086249879.7715.374.camel@localhost> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Thu, 03 Jun 2004 10:04:39 +0200 X-Spam-Score: -4.901 () BAYES_00 X-Scanned-By: MIMEDefang 2.39 Subject: Solaris and setsockopts X-BeenThere: users@conserver.com X-Mailman-Version: 2.1.5 Precedence: list List-Id: Conserver Users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jun 2004 08:04:45 -0000 Hi, I'm having trouble with conserver on Solaris, I'm getting this in the logfile: [Thu Jun 3 07:00:28 2004] conserver (26279): ERROR: [test] setsockopt(8,SO_KEEPALIVE): Invalid argument: forcing down My version: conserver: conserver.com version 8.1.7 conserver: default access type `r' conserver: default escape sequence `^Ec' conserver: default configuration in `/etc/conserver.cf' conserver: default password in `/etc/conserver.passwd' conserver: default logfile is `/var/log/conserver' conserver: default pidfile is `/var/run/conserver.pid' conserver: default limit is 16 members per group conserver: default primary port referenced as `conserver' conserver: default secondary base port referenced as `0' conserver: options: openssl, pam conserver: openssl version: OpenSSL 0.9.7d 17 Mar 2004 conserver: built with `./configure --prefix=/local --sysconfdir=/etc --localstatedir=/var/run --with-pam --with-openssl' I have the same configuration running faultless on Linux. Any help ? Sincerely, Trond Hagen From bryan@stansell.org Thu Jun 3 12:27:56 2004 Received: from underdog.stansell.org (localhost [127.0.0.1]) by underdog.stansell.org (8.12.11/8.12.11) with ESMTP id i53JRtTQ003243 for ; Thu, 3 Jun 2004 12:27:55 -0700 (PDT) Received: (from bryan@localhost) by underdog.stansell.org (8.12.11/8.12.11/Submit) id i53JRtDi003242 for users@conserver.com; Thu, 3 Jun 2004 12:27:55 -0700 (PDT) Date: Thu, 3 Jun 2004 12:27:55 -0700 From: Bryan Stansell To: users@conserver.com Message-ID: <20040603192755.GN8683@underdog.stansell.org> References: <1086249879.7715.374.camel@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1086249879.7715.374.camel@localhost> User-Agent: Mutt/1.4.2.1i X-Scanned-By: MIMEDefang 2.39 Subject: Re: Solaris and setsockopts X-BeenThere: users@conserver.com X-Mailman-Version: 2.1.5 Precedence: list List-Id: Conserver Users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jun 2004 19:27:56 -0000 On Thu, Jun 03, 2004 at 10:04:39AM +0200, Trond Hagen wrote: > [Thu Jun 3 07:00:28 2004] conserver (26279): ERROR: [test] > setsockopt(8,SO_KEEPALIVE): Invalid argument: forcing down i bet you've compiled the thing as a 64bit app, right? that's my guess...and when i tried that on my solaris box, i got the same error. for some reason i'm using the wrong variable type on the setsockopt() call (i think i got "confused" at one point a while back...). anyway, the fix is simple...apply this patch to conserver/consent.c: *** consent.c.orig Thu Jun 3 12:22:09 2004 --- consent.c Thu Jun 3 12:22:17 2004 *************** *** 734,740 **** { struct sockaddr_in port; struct hostent *hp; ! size_t one = 1; usleep(100000); /* Not all terminal servers can keep up */ --- 734,740 ---- { struct sockaddr_in port; struct hostent *hp; ! int one = 1; usleep(100000); /* Not all terminal servers can keep up */ that fixed it for me, at least. the other calls to setsockopt() in the rest of the program use the correct type. Bryan From trond@basefarm.no Tue Jun 8 06:08:58 2004 Received: from vinterbro.com (oslo-dhcp-252-187.bluecom.no [62.101.252.187]) by underdog.stansell.org (8.12.11/8.12.11) with ESMTP id i58D8sNO005050; Tue, 8 Jun 2004 06:08:56 -0700 (PDT) Received: by vinterbro.com (Postfix, from userid 4071) id E78F86FEE7; Tue, 8 Jun 2004 15:08:52 +0200 (CEST) From: Trond Hagen To: Bryan Stansell In-Reply-To: <20040603192755.GN8683@underdog.stansell.org> References: <1086249879.7715.374.camel@localhost> <20040603192755.GN8683@underdog.stansell.org> Content-Type: text/plain Content-Transfer-Encoding: 7bit Message-Id: <1086700132.10961.23.camel@localhost> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Tue, 08 Jun 2004 15:08:52 +0200 X-Spam-Score: -4.901 () BAYES_00 X-Scanned-By: MIMEDefang 2.39 Cc: users@conserver.com Subject: Re: Solaris and setsockopts X-BeenThere: users@conserver.com X-Mailman-Version: 2.1.5 Precedence: list List-Id: Conserver Users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jun 2004 13:08:59 -0000 On Thu, 2004-06-03 at 21:27, Bryan Stansell wrote: > On Thu, Jun 03, 2004 at 10:04:39AM +0200, Trond Hagen wrote: > > [Thu Jun 3 07:00:28 2004] conserver (26279): ERROR: [test] > > setsockopt(8,SO_KEEPALIVE): Invalid argument: forcing down > > i bet you've compiled the thing as a 64bit app, right? Yes. > > that's my guess...and when i tried that on my solaris box, i got the > same error. for some reason i'm using the wrong variable type on the > setsockopt() call (i think i got "confused" at one point a while > back...). > > anyway, the fix is simple...apply this patch to conserver/consent.c: > > *** consent.c.orig Thu Jun 3 12:22:09 2004 > --- consent.c Thu Jun 3 12:22:17 2004 > *************** > *** 734,740 **** > { > struct sockaddr_in port; > struct hostent *hp; > ! size_t one = 1; > > usleep(100000); /* Not all terminal servers can keep up */ > > --- 734,740 ---- > { > struct sockaddr_in port; > struct hostent *hp; > ! int one = 1; > > usleep(100000); /* Not all terminal servers can keep up */ > > that fixed it for me, at least. the other calls to setsockopt() in the > rest of the program use the correct type. Your patch fixed it, thanks ! trond > > Bryan From bryan@stansell.org Wed Jun 9 15:43:07 2004 Received: from underdog.stansell.org (localhost [127.0.0.1]) by underdog.stansell.org (8.12.11/8.12.11) with ESMTP id i59Mh7cU029654; Wed, 9 Jun 2004 15:43:07 -0700 (PDT) Received: (from bryan@localhost) by underdog.stansell.org (8.12.11/8.12.11/Submit) id i59Mh7PL029653; Wed, 9 Jun 2004 15:43:07 -0700 (PDT) Date: Wed, 9 Jun 2004 15:43:07 -0700 From: Bryan Stansell To: announce@conserver.com, users@conserver.com Message-ID: <20040609224307.GM8683@underdog.stansell.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-Scanned-By: MIMEDefang 2.39 Cc: Subject: conserver-8.1.8 is available X-BeenThere: users@conserver.com X-Mailman-Version: 2.1.5 Precedence: list List-Id: Conserver Users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jun 2004 22:43:08 -0000 This release has one small bug fix and one small piece of new functionality. The conserver.cf manpage talks about the new "spin" control pieces. Enjoy! version 8.1.8 (Jun 9, 2004): - added 'initspinmax' and 'initspintimer' console options to help calm console initialization "spinning" - fixed setsockopt() error on 64bit solaris - reported by Trond Hagen Bryan Stansell