From dev-return-38365-apmail-mina-dev-archive=mina.apache.org@mina.apache.org Tue Oct 6 15:11:03 2020 Return-Path: X-Original-To: apmail-mina-dev-archive@www.apache.org Delivered-To: apmail-mina-dev-archive@www.apache.org Received: from mxout1-ec2-va.apache.org (mxout1-ec2-va.apache.org [3.227.148.255]) by minotaur.apache.org (Postfix) with ESMTP id 0E1081A6FD for ; Tue, 6 Oct 2020 15:11:03 +0000 (UTC) Received: from mail.apache.org (mailroute1-lw-us.apache.org [207.244.88.153]) by mxout1-ec2-va.apache.org (ASF Mail Server at mxout1-ec2-va.apache.org) with SMTP id C3D2044446 for ; Tue, 6 Oct 2020 15:11:02 +0000 (UTC) Received: (qmail 5718 invoked by uid 500); 6 Oct 2020 15:11:02 -0000 Delivered-To: apmail-mina-dev-archive@mina.apache.org Received: (qmail 5496 invoked by uid 500); 6 Oct 2020 15:11:01 -0000 Mailing-List: contact dev-help@mina.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@mina.apache.org Received: (qmail 5467 invoked by uid 99); 6 Oct 2020 15:11:01 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Oct 2020 15:11:01 +0000 Received: from jira2-he-de.apache.org (static.54.33.119.168.clients.your-server.de [168.119.33.54]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id CBBB34005E for ; Tue, 6 Oct 2020 15:11:00 +0000 (UTC) Received: from jira2-he-de.apache.org (localhost.localdomain [127.0.0.1]) by jira2-he-de.apache.org (ASF Mail Server at jira2-he-de.apache.org) with ESMTP id 51FD3C806DB for ; Tue, 6 Oct 2020 15:11:00 +0000 (UTC) Date: Tue, 6 Oct 2020 15:11:00 +0000 (UTC) From: "Alexander B (Jira)" To: dev@mina.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (DIRMINA-1137) PortUnreachable not check while writing to socket MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Alexander B created DIRMINA-1137: ------------------------------------ Summary: PortUnreachable not check while writing to socket Key: DIRMINA-1137 URL: https://issues.apache.org/jira/browse/DIRMINA-1137 Project: MINA Issue Type: Bug Components: Core Affects Versions: 2.1.4 Environment: Java 1.8, Unix/Windows Reporter: Alexander B Hi guys, My intention is to send udp package to a specific ip and port (even if there is not receiver). Me - as the sender - do not have any knowledge about (existing) receivers. After receiving a "unreachable port" package back to myself (because no receiver exists), the session was closed automatically. In your class AbstractPollingIoProcessor from lines 1108ff. in such a case a UnreachablePortException was thrown, catched and therefore in line 1112 the session was closed. In contrast to this, while reading from a socket (lines 560ff.), you are distinguishing cases with and without the flag CloseOnPortUnreachable from the sessionConfig. [I am not quite sure about my statement here] Can you explain, why this was not done at the "writing"-process? Or was there anything I missunderstood? Thanks Alex -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org For additional commands, e-mail: dev-help@mina.apache.org