Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 14887 invoked from network); 18 Jan 2006 03:03:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 Jan 2006 03:03:46 -0000 Received: (qmail 21925 invoked by uid 500); 18 Jan 2006 03:03:45 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 21868 invoked by uid 500); 18 Jan 2006 03:03:45 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 21857 invoked by uid 99); 18 Jan 2006 03:03:45 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Jan 2006 19:03:45 -0800 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=DNS_FROM_RFC_POST,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of aok123@bellsouth.net designates 205.152.59.69 as permitted sender) Received: from [205.152.59.69] (HELO imf21aec.mail.bellsouth.net) (205.152.59.69) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Jan 2006 19:03:43 -0800 Received: from ibm63aec.bellsouth.net ([65.80.200.112]) by imf21aec.mail.bellsouth.net with ESMTP id <20060118030322.NOZN4080.imf21aec.mail.bellsouth.net@ibm63aec.bellsouth.net> for ; Tue, 17 Jan 2006 22:03:22 -0500 Received: from [172.16.1.7] (really [65.80.200.112]) by ibm63aec.bellsouth.net with ESMTP id <20060118030321.CYMQ29460.ibm63aec.bellsouth.net@[172.16.1.7]> for ; Tue, 17 Jan 2006 22:03:21 -0500 Message-ID: <43CDAFF9.40106@bellsouth.net> Date: Tue, 17 Jan 2006 22:03:21 -0500 From: Alex Karasulu User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@directory.apache.org Subject: [ApacheDS] [MINA] Twix throws triggers call to IoHandler.messageCaught()? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi Emmanuel, Trustin, I guess this is both informative and a question at the same time. Basically Twix or any codec must throw a DecoderException or something like that if it fails to decode some PDU from a client regardless of the protocol. Now when this happens does the IoHandler get called via messageCaught()? Also note Emmanuel that when you throw these exceptions I intend to catch them there and send a Notice of Disconnect with result code set to protocolError to the client before closing the session. This cool? Also while talking about the Notice of Disconnect unsolicited operation, I will register a JVM shutdown hook in the protocol handler. In this I will send a NoD to all active sessions and close them. The result code will be set to unavailable. What do you think about using a shutdown hook for this? Alex