commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1361549 - in /commons/proper/net/trunk/src: changes/changes.xml main/java/org/apache/commons/net/telnet/TelnetInputStream.java
Date Sat, 14 Jul 2012 13:57:35 GMT
Author: sebb
Date: Sat Jul 14 13:57:34 2012
New Revision: 1361549

URL: http://svn.apache.org/viewvc?rev=1361549&view=rev
Log:
NET-456 TelnetClient hangs when reader-thread startup is delayed.

Modified:
    commons/proper/net/trunk/src/changes/changes.xml
    commons/proper/net/trunk/src/main/java/org/apache/commons/net/telnet/TelnetInputStream.java

Modified: commons/proper/net/trunk/src/changes/changes.xml
URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/src/changes/changes.xml?rev=1361549&r1=1361548&r2=1361549&view=diff
==============================================================================
--- commons/proper/net/trunk/src/changes/changes.xml (original)
+++ commons/proper/net/trunk/src/changes/changes.xml Sat Jul 14 13:57:34 2012
@@ -65,6 +65,9 @@ The <action> type attribute can be add,u
         <release version="3.2" date="TBA" description="
 TBA
         ">
+            <action issue="NET-456" dev="sebb" type="fix">
+            TelnetClient hangs when reader-thread startup is delayed.
+            </action>
             <action issue="NET-449" dev="sebb" type="fix">
             listFiles bug with folder that begins with "-". Clarify Javadoc.
             </action>

Modified: commons/proper/net/trunk/src/main/java/org/apache/commons/net/telnet/TelnetInputStream.java
URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/src/main/java/org/apache/commons/net/telnet/TelnetInputStream.java?rev=1361549&r1=1361548&r2=1361549&view=diff
==============================================================================
--- commons/proper/net/trunk/src/main/java/org/apache/commons/net/telnet/TelnetInputStream.java
(original)
+++ commons/proper/net/trunk/src/main/java/org/apache/commons/net/telnet/TelnetInputStream.java
Sat Jul 14 13:57:34 2012
@@ -108,6 +108,7 @@ final class TelnetInputStream extends Bu
         __thread.setPriority(priority);
         __thread.setDaemon(true);
         __thread.start();
+        __threaded = true; // tell _processChar that we are running threaded
     }
 
 
@@ -596,8 +597,6 @@ final class TelnetInputStream extends Bu
     {
         int ch;
 
-        __threaded = true; // tell _processChar that we are running threaded
-
         try
         {
 _outerLoop:



Mime
View raw message