• Post Reply Bookmark Topic Watch Topic
  • New Topic

SSH TimeOut not Happening  RSS feed

 
Aswin Gopal
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to check SFTP connection to remote server using enchanter jar. Mine is not a multi-threaded application. PFB sample code...



note - the batch.file contains only 1 statement. Please find below.
---
bye
---

But the above program is getting is stuck at times when the server is not responding. It goes into infinite hung state.

Is there some alternative ways to set timeout ?
 
Campbell Ritchie
Marshal
Posts: 56598
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch

I have added Code Tags, which you should always use, and they make it look a lot better
Don't know about socket timeouts, but that question is too difficult for “beginning”, so I shall move the discussion.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!