You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2004/12/08 23:50:33 UTC

DO NOT REPLY [Bug 26757] - sshexec hangs

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=26757>.
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=26757


gregharris73@yahoo.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #11829|0                           |1
        is obsolete|                            |
  Attachment #11830|0                           |1
        is obsolete|                            |




------- Additional Comments From gregharris73@yahoo.com  2004-12-08 23:50 -------
Created an attachment (id=13688)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=13688&action=view)
it's a fix to use for JSCH, not ANT!! 

I have fixed this myself using the source for JSCH.  However, I'm not
completely sure whether or not what I did is the absolute right way it should
behave, but I'm assuming it is.  The problem with SSHExec in ANT is that it is
waiting for Channel.isEOF(), but the channel never says it's done.  The Session
object has a case statement in the run() method for different SSH replies from
the server, in my case at least:

SSH_MSG_CHANNEL_CLOSE:
@ Line: 1043 says channel.disconnect() but this method never does anything
about making  eof=true; or Channel.eof(); (what ant is waiting for).

Also seems environmental, I do not have the problem on a Solaris Box using:

OpenSSH_3.7.1p1, SSH protocols 1.5/2.0, OpenSSL 0.9.7c 30 Sep 2003

but do have it using an otherwise identicle box using:

ssh: SSH Secure Shell 3.2.5 (non-commercial version) on sparc-sun-solaris2.8

We also don't have this problem on all our linux boxes, also using OpenSSH. 
Hope that's helpful to someone and I'll send this on to folks at JCraft to see
what they say.

-- 
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