[JSch-users] Problem with jsch staying in sleep state
Status: Alpha
Brought to you by:
ymnk
From: Butcher, W. n. U. <wil...@gb...> - 2012-05-09 15:22:23
|
Hi I have written a java sftp interface using jsch. I get an intermittent problem when I try transferring a number of files up to 300MB in size (up to 10 files). The transfer works and then for some reason goes into a sleep state and never wakes up again so the connection is maintained but the files do not transfer and the process never finishes. I have done a truss on the process and remains in the sleep state indefinitely. I have change my code to drop the session for each file and then create a new session and channel for each file, but this doesn't seem to work. Sometimes the process will finish without problem but about 50% of the time it seems to get stuck in a sleeping loop. Version of jsch is 0.1.47. Running on Solaris 10. I've tried setting setServerAliveInterval(500) but that doesn't work either. Any suggestions would be much appreciated. Thanks Regards William |