Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 16470 invoked from network); 10 Oct 2004 12:34:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 10 Oct 2004 12:34:58 -0000 Received: (qmail 74766 invoked by uid 500); 10 Oct 2004 12:34:57 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 74723 invoked by uid 500); 10 Oct 2004 12:34: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 74712 invoked by uid 99); 10 Oct 2004 12:34:56 -0000 X-ASF-Spam-Status: No, hits=1.8 required=10.0 tests=RCVD_IN_BL_SPAMCOP_NET X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from [62.24.64.34] (HELO smtp.dkm.cz) (62.24.64.34) by apache.org (qpsmtpd/0.28) with SMTP; Sun, 10 Oct 2004 05:34:55 -0700 Received: (qmail 79461 invoked by uid 0); 10 Oct 2004 12:34:51 -0000 Received: from lin.code.cz (HELO ?62.245.69.249?) (62.245.69.249) by smtp.dkm.cz with SMTP; 10 Oct 2004 12:34:51 -0000 Message-ID: <41692C85.6090705@code.cz> Date: Sun, 10 Oct 2004 14:35:17 +0200 From: =?ISO-8859-1?Q?Jan_Hlavat=FD?= 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> <55FD98C2-19D1-11D9-906D-003065905854@nonintuitive.com> <4167D0BF.9000804@code.cz> <7FFF4B7A-1A5A-11D9-906D-003065905854@nonintuitive.com> <41691E08.2020806@code.cz> In-Reply-To: <41691E08.2020806@code.cz> X-Enigmail-Version: 0.85.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigD94DA8600FF030B877A780A8" X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigD94DA8600FF030B877A780A8 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit > SO_KEEPALIVE works, even for blocking in reads. > I have tested it. Tried both windows XP and linux (FC2), configured for 30 second keepalive interval. Both throw SocketException as specified after the keepalive probes fail, when I'm in blocking read(). Bad thing is, without system wide configuration change, timeout defaults to 2 hours. So it looks like a good idea to configure shorter interval on server machine. In any case, network server should certainly enable SO_KEEPALIVE on client connections. Jan --------------enigD94DA8600FF030B877A780A8 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iQEVAwUBQWksiHFDePgyse5HAQJNfAf+L/NbN/vA86mUnv+fsp8JJPmc0NkKM9XI tnawcKzPSz83uzLIjp34xYELnExaYEbgek+sObnXVUUeooxzrPSENQm9K2H68v3p rvwHMVXSCkZO6jcXqxqbicKhhMNqLeRnBGpkNpEkCNQqlBjJNGI4odMfsDvYP+4L VNfTP+sZoPC9RApsSVOGGyDRGPspE0g5PBenrYqUlbV9uf9yCRQOecKEkPID8Mb6 Kz82Y+uwruVyea+5nZ2KDZL5RtoDiBeyiUqRkYYzN4lP9uqBuwwkorTqiN8Y614d ZqxPWpJmkaSm4R3m89UYQJbjSiaS5ndVwujwUUy4Tzolc0CDdqoJLg== =coD/ -----END PGP SIGNATURE----- --------------enigD94DA8600FF030B877A780A8--