problems with connections in j2ssh
"Teemu Lehto" <[email protected]>
| Newsgroups | gmane.comp.java.sshtools.user |
|---|---|
| Message-ID | <[email protected]> |
Hi! I have java program that uses j2ssh0.2.6. Program handles multiple SshClients and sends commands to remote machine and reads responses. All connections should be always connected to remote server. If read or write fails for some reason connection is considered disconnected and program creates new connection. Sometimes these lines exists in the log-file: 70893889 INFO [Thread-0] com.sshtools.j2ssh.connection.ConnectionProtocol - Closing all active channels 70893890 DEBUG [Thread-0] com.sshtools.j2ssh.connection.ConnectionProtocol - Closing session id=241 70893890 DEBUG [Thread-0] com.sshtools.j2ssh.connection.Channel - Connection is not connected 70893890 INFO [Thread-0] com.sshtools.j2ssh.connection.Channel - Finializing channel close 70893890 INFO [Thread-0] com.sshtools.j2ssh.connection.ChannelInputStream - Closing ChannelInputStream After that program gets stuck. Can anybody tell me reason for this "Closing all active channels". I will rewrite some parts of my program to avoid this but I'd like to know what causes this behaviour. Anyone??? -Teemu- _________________________________________________________________ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click