Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 90906 invoked from network); 9 Oct 2004 18:06:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 9 Oct 2004 18:06:57 -0000 Received: (qmail 10362 invoked by uid 500); 9 Oct 2004 18:06:57 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 10307 invoked by uid 500); 9 Oct 2004 18:06:56 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: List-Id: Reply-To: "Derby Development" Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 10294 invoked by uid 99); 9 Oct 2004 18:06:56 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [66.163.170.82] (HELO smtp812.mail.sc5.yahoo.com) (66.163.170.82) by apache.org (qpsmtpd/0.28) with SMTP; Sat, 09 Oct 2004 11:06:53 -0700 Received: from unknown (HELO ?192.168.1.100?) (kbmars@64.163.149.241 with plain) by smtp812.mail.sc5.yahoo.com with SMTP; 9 Oct 2004 18:06:52 -0000 Message-ID: <416828BA.8070504@Sourcery.Org> Date: Sat, 09 Oct 2004 11:06:50 -0700 From: Kathey Marsden User-Agent: Mozilla Thunderbird 0.7.3 (Windows/20040803) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Derby Development Subject: Re: Help detecting client disconnects for network server References: <41672595.4040909@Sourcery.Org> In-Reply-To: <41672595.4040909@Sourcery.Org> X-Enigmail-Version: 0.85.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Jan Hlavat� wrote: >Did you try setting SO_KEEPALIVE socket option using Socket.setKeepAlive(boolean)? >That what its for. The timeout may be really long though (sbout 2 hours), >but may be tuned on OS level (globally). Yes, I tried setKeepAlive but the timeout was too long and I didn't know I had to set it in the OS. Thanks for the info on that. It seems less than optimal because it would affect other applications as well, but maybe that's ok. I was thinking maybe the best approach would be to. 1) Fix network server to use setKeepAlive so setting the system keepalive timeout will affect it. 2) Add a db2j.drda.connTimeout property so users can set an absolute limit on connection life. Connections would timeout after this limit regardless of whether there was connectivity. Thoughts? Kathey -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFBaCi5G0h36bFmkocRAsd+AKCS8lAgjGZ7jONrASlWSUmpRogvlQCglOrL FbNUxtWg8uCrQ6ouoQJwf+s= =RSC5 -----END PGP SIGNATURE-----