Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 61486 invoked from network); 19 Dec 2006 20:21:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Dec 2006 20:21:47 -0000 Received: (qmail 88886 invoked by uid 500); 19 Dec 2006 20:21:52 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 88822 invoked by uid 500); 19 Dec 2006 20:21:52 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 88811 invoked by uid 99); 19 Dec 2006 20:21:52 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Dec 2006 12:21:52 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Dec 2006 12:21:44 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id CEC1B714289 for ; Tue, 19 Dec 2006 12:21:23 -0800 (PST) Message-ID: <21511079.1166559683844.JavaMail.jira@brutus> Date: Tue, 19 Dec 2006 12:21:23 -0800 (PST) From: "Daniel Savarese (JIRA)" To: commons-dev@jakarta.apache.org Subject: [jira] Commented: (NET-146) wrong handling of timeouts In-Reply-To: <21526564.1166475506265.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ http://issues.apache.org/jira/browse/NET-146?page=comments#action_12459750 ] Daniel Savarese commented on NET-146: ------------------------------------- As an addendum, I still believe (as I said in the issue referenced by the doc I mentioned) that if you set a socket timeout and the socket connection times out due to inactivity, how is that a bug? > wrong handling of timeouts > -------------------------- > > Key: NET-146 > URL: http://issues.apache.org/jira/browse/NET-146 > Project: Commons Net > Issue Type: Bug > Affects Versions: 1.4 Final > Environment: linux 2.6, java 1.5.0_08 (but most probably any environment) > Reporter: Koloom > > If you set a timeout on the control connection and then make a data transfer (upload, download) which takes longer than that timeout, the client throws the following exception. It seems like the client tries to read something from the control connection while the data transfer is in progress and then it just throws an exception. It makes the application think that the transfer failed even though it succeeded. > aused by: java.net.SocketTimeoutException: Read timed out > at java.net.SocketInputStream.socketRead0(Native Method) > at java.net.SocketInputStream.read(SocketInputStream.java:129) > at java.io.BufferedInputStream.fill(BufferedInputStream.java:218) > at java.io.BufferedInputStream.read(BufferedInputStream.java:235) > at java.io.FilterInputStream.read(FilterInputStream.java:66) > at java.io.PushbackInputStream.read(PushbackInputStream.java:120) > at org.apache.commons.net.io.FromNetASCIIInputStream.__read(FromNetASCIIInputStream.java:75) > at org.apache.commons.net.io.FromNetASCIIInputStream.read(FromNetASCIIInputStream.java:170) > at java.io.BufferedInputStream.fill(BufferedInputStream.java:218) > at java.io.BufferedInputStream.read(BufferedInputStream.java:235) > at org.apache.commons.net.telnet.TelnetInputStream.__read(TelnetInputStream.java:114) > at org.apache.commons.net.telnet.TelnetInputStream.run(TelnetInputStream.java:535) > at java.lang.Thread.run(Thread.java:595) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org