Author: gnodet
Date: Thu Jun  7 14:17:56 2012
New Revision: 1347630

URL: http://svn.apache.org/viewvc?rev=1347630&view=rev
Log:
[SSHD-171] ScpCommand block indefinately when using the -p flag

Modified:
    
mina/sshd/trunk/sshd-core/src/main/java/org/apache/sshd/server/command/ScpCommand.java

Modified: 
mina/sshd/trunk/sshd-core/src/main/java/org/apache/sshd/server/command/ScpCommand.java
URL: 
http://svn.apache.org/viewvc/mina/sshd/trunk/sshd-core/src/main/java/org/apache/sshd/server/command/ScpCommand.java?rev=1347630&r1=1347629&r2=1347630&view=diff
==============================================================================
--- 
mina/sshd/trunk/sshd-core/src/main/java/org/apache/sshd/server/command/ScpCommand.java
 (original)
+++ 
mina/sshd/trunk/sshd-core/src/main/java/org/apache/sshd/server/command/ScpCommand.java
 Thu Jun  7 14:17:56 2012
@@ -154,6 +154,10 @@ public class ScpCommand implements Comma
                         case 'C':
                             line = ((char) c) + readLine();
                             break;
+                        case 'T':
+                            readLine();
+                            ack();
+                            continue;
                         case 'E':
                             readLine();
                             return;
@@ -281,6 +285,9 @@ public class ScpCommand implements Comma
             } else if (header.equals("E")) {
                 ack();
                 break;
+            } else if (header.equals("T")) {
+                ack();
+                break;
             } else {
                 throw new IOException("Unexpected message: '" + header + "'");
             }


Reply via email to