Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 79880 invoked from network); 21 Apr 2005 12:16:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 Apr 2005 12:16:37 -0000 Received: (qmail 7760 invoked by uid 500); 21 Apr 2005 12:16:48 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 7624 invoked by uid 500); 21 Apr 2005 12:16:46 -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 7505 invoked by uid 99); 21 Apr 2005 12:16:44 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of trustin@gmail.com designates 64.233.184.192 as permitted sender) Received: from wproxy.gmail.com (HELO wproxy.gmail.com) (64.233.184.192) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 21 Apr 2005 05:16:43 -0700 Received: by wproxy.gmail.com with SMTP id 70so570733wra for ; Thu, 21 Apr 2005 05:16:28 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:mime-version:content-type:content-transfer-encoding:content-disposition; b=OGh13iz9aU2dIqsr+HegyQ2jQr5fo+LfacT1ejGkWbp6VcW4dUrNjl9chC7posAnpN4F/fil/o9FXhXi5KZ+UL4vGcrgXTe/H2V8U4cknoNUvQApmzaE1dsX7rNQzVzd4xp92qWfahZeqBO55O3Y/6jdxuyVydqL9ai8c2UkjPU= Received: by 10.54.51.58 with SMTP id y58mr1632893wry; Thu, 21 Apr 2005 05:16:27 -0700 (PDT) Received: by 10.54.70.20 with HTTP; Thu, 21 Apr 2005 05:16:27 -0700 (PDT) Message-ID: <768dcb2e05042105164ce7fe4d@mail.gmail.com> Date: Thu, 21 Apr 2005 21:16:27 +0900 From: Trustin Lee Reply-To: Trustin Lee To: Apache Directory Developers List Subject: [mina] Strange problem when SocketConnector connects with local address specified Cc: Luis Gasca Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, IoConnector provides methods that user can specify local address. If local address is specified, connector binds to the specified local address first and then connects to remote address. I added this feature by a request of a guy called Luis Gasca because the server authenticates his clients by its remote port number. I added a test case that tests IoConnectors to connect to echo server specifying local address. It passes in case of DatagramChannel, but fails SocketChannel. It is really strange that it succeeds only about one time out of ten iteration. I still cannot find why it fails, and I disabled the test for now. Any ideas? Trustin --=20 what we call human nature is actually human habit -- http://gleamynode.net/