ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 43898] New: - recursive scp push may hang
Date Mon, 19 Nov 2007 09:29:59 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43898>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43898

           Summary: recursive scp push may hang
           Product: Ant
           Version: 1.7.0
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Optional Tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: tge@blue-elephant-systems.com


I have tried to transfer a directory structure consisting of a few files and
directories and after some items the transfer hangs.
I have debugged this and identified the SSH/SCP protocol phase where it got
stuck. I changed the code locally as in the attached patch, then it worked:

--- ./ScpToMessage.java-orig 2006-12-13 13:16:19.000000000 +0100
+++ ./ScpToMessage.java 2007-11-15 15:39:14.000000000 +0100
@@ -209,6 +209,7 @@
         waitForAck(in);
         sendDirectory(directory, in, out);
         out.write("E\n".getBytes());
+        out.flush();
         waitForAck(in);
     }

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message