xiaoyong-guo / ganymed-ssh-2

Automatically exported from code.google.com/p/ganymed-ssh-2
Other
0 stars 0 forks source link

Lost Connection during command execution appears as completed and normally closed connection #5

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. create and open session, execute long running remote command
2. kill sshd on target server (or unplug network wire.. force/simulate lost 
connection/process)
3. Read completes with no exception or indication of error

What is the expected output? What do you see instead?
Some form of failure, probably IOException

What version of the product are you using? On what operating system?
build210, linux(ubuntu) client and server

Please provide any additional information below.

Issue is in Thread created in TransportManager.initialize. IOExceptions causing 
drop out of the receiveLoop are caught, tm.close is called, logged, and 
discarded.

While close() records the exception as a cause, this is within the 
TransactionManager which is not accessable to client code.

IOException should probably be thrown from this code, or worst case provide 
some way to access the TransactionManager.reasonClosedCause from client code.

Original issue reported on code.google.com by jrussell...@gmail.com on 27 May 2011 at 6:55

GoogleCodeExporter commented 8 years ago
Apparently I cant edit my own submission - replace all mentions of 
TransactionManager in issue description to TransportManager

Original comment by jrussell...@gmail.com on 27 May 2011 at 6:58

GoogleCodeExporter commented 8 years ago
I made some changes that could impact this in r10. Can you try to replicate 
this issue with the current head of the repository?

Original comment by dkocher@sudo.ch on 27 May 2011 at 9:28

GoogleCodeExporter commented 8 years ago

Original comment by dkocher@sudo.ch on 29 May 2011 at 9:12

GoogleCodeExporter commented 8 years ago
Issue still exists in head

Original comment by jrussell...@gmail.com on 3 Jun 2011 at 11:43

GoogleCodeExporter commented 8 years ago
Reopen this issue.

Original comment by dkocher@sudo.ch on 4 Jun 2011 at 11:19

GoogleCodeExporter commented 8 years ago
in r119.

Original comment by dkocher@sudo.ch on 12 Apr 2014 at 8:32