• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

SSH TimeOut not Happening

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ?
 
Marshal
Posts: 79239
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic