Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 20372 invoked from network); 2 Jul 2004 04:15:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 2 Jul 2004 04:15:26 -0000 Received: (qmail 61097 invoked by uid 500); 2 Jul 2004 04:15:40 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 61034 invoked by uid 500); 2 Jul 2004 04:15:38 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 60855 invoked by uid 99); 2 Jul 2004 04:15:36 -0000 X-ASF-Spam-Status: No, hits=3.2 required=10.0 tests=DNS_FROM_RFC_POST,URIBL_WS_SURBL X-Spam-Check-By: apache.org Received: from [65.54.244.114] (HELO hotmail.com) (65.54.244.114) by apache.org (qpsmtpd/0.27.1) with ESMTP; Thu, 01 Jul 2004 21:15:34 -0700 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 1 Jul 2004 21:08:59 -0700 Received: from 203.193.139.182 by bay1-dav10.bay1.hotmail.com with DAV; Fri, 02 Jul 2004 04:08:59 +0000 X-Originating-IP: [203.193.139.182] X-Originating-Email: [farooqueahmadkhan@hotmail.com] X-Sender: farooqueahmadkhan@hotmail.com Reply-To: "Farooque Khan" From: "Farooque Khan" To: "Jakarta Commons Users List" References: <200407011728.i61HSGFI024166@aragorn.savarese.org> Subject: Re: Is commons Net thread safe? Date: Fri, 2 Jul 2004 09:45:20 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 Message-ID: X-OriginalArrivalTime: 02 Jul 2004 04:08:59.0774 (UTC) FILETIME=[4D56D9E0:01C45FEA] X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Thanks. yes I was talking about TelntClient class. But my observation was very different. When I took two separate instances of this class in two separate threads and launched them at once, they connected properly (to two different servers), but the streams were closed immediately when I tried to read the data. When I launched each thread separately (no change in code), they worked perfectly well. Any hints where the issues lies? Thanks again, -Farooque Khan Sr. Technology Architect, Info Spectrum India Pvt. Ltd. http://info-spectrum.com http://farooque.150m.com ----- Original Message ----- From: "Daniel F. Savarese" To: Sent: Thursday, July 01, 2004 10:58 PM Subject: Re: Is commons Net thread safe? > > In message , "Farooque Khan" writes: > >I am particularly interested in telnet component. > > Assuming you're talking about the TelnetClient class; there is no > mutable state shared between TelnetClient instances. Therefore separate > instances can be safely used in separate threads without creating an > unexpected state. If you wish to concurrently call methods of a single > TelnetClient instance from separate threads, you will need to protect access > to the instance with a critical section. > > daniel > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-user-help@jakarta.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org