From user-return-26752-apmail-commons-user-archive=commons.apache.org@commons.apache.org Wed Sep 28 14:07:39 2011 Return-Path: X-Original-To: apmail-commons-user-archive@www.apache.org Delivered-To: apmail-commons-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0F6B571F0 for ; Wed, 28 Sep 2011 14:07:39 +0000 (UTC) Received: (qmail 51730 invoked by uid 500); 28 Sep 2011 14:07:37 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 51631 invoked by uid 500); 28 Sep 2011 14:07:37 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 51620 invoked by uid 99); 28 Sep 2011 14:07:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Sep 2011 14:07:36 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [212.86.41.11] (HELO mx1.smartnet.de) (212.86.41.11) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Sep 2011 14:07:29 +0000 Received: from NTSHH-WSEX01.NTS.Neusoft.local (webmail.neusoft.de [212.86.53.235]) by mx1.smartnet.de (Postfix) with ESMTP id 20CD03A28C for ; Wed, 28 Sep 2011 16:07:06 +0200 (CEST) Received: from NTSHH-WSEX01.NTS.Neusoft.local ([fe80::d91c:4f44:cb23:e1d1]) by NTSHH-WSEX01.NTS.Neusoft.local ([fe80::d91c:4f44:cb23:e1d1%13]) with mapi id 14.01.0218.012; Wed, 28 Sep 2011 16:07:06 +0200 From: "Fischer, Till" To: "'user@commons.apache.org'" Subject: [NET - Telnet] Second execution of task hangs forever. Thread-Topic: [NET - Telnet] Second execution of task hangs forever. Thread-Index: Acx95+eNG7vRVZ17RwuSRWP9qwitBA== Date: Wed, 28 Sep 2011 14:07:06 +0000 Message-ID: Accept-Language: de-DE, en-US Content-Language: de-DE X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.16.167.157] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org Hello all, I'm trying to remote control an embedded system using telnet. The system is= running QNX (A realtime Unixoid). The first connection with telnet works without any problem. But the second = hangs forever. I prepared a minimal working (or rather not working) example: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =09 # ls =09 # ls =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D If I execute this I get the following output from ant: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D C:\tmp>ant Buildfile: C:\tmp\build.xml telnet1: [telnet] [telnet] [telnet] QNX Neutrino (localhost) (ttyp0) [telnet] [telnet] [telnet] [telnet] login: [telnet] root [telnet] Password: [telnet] [telnet] Wed Sep 28 15:00:20 2011 on /dev/ttyp0 [telnet] Last login: Wed Sep 28 14:59:24 2011 on /dev/ttyp0 [telnet] # [telnet] ls [echo] sleeping 2s [echo] slept 2s telnet2: Batchvorgang abbrechen (J/N)? J C:\tmp> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D The second telnet task hung for more than five minutes (note the 5s timeout= specified). On the remote systems side I looked for the connection using netstat. It wa= s there during the first task execution. Then gone afterwards, and another = connection was made for the second execution. So I verified, that the first connection is properly closed, at least on th= e remote system. Does anybody know of this problem? Can you give me any directions to furthe= r investigate? I am writing in the hopes of not having to dig into the commons-net source = code and debugging it myself. Best regards Till -- Till Fischer Software Engineer Software Release Management Neusoft Technology Solutions GmbH Hugh-Greene-Weg 2-4 22529 Hamburg - Germany Mailto: till.fischer@neusoft.com www.neusoft.com --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org