Lahiru Gunathilake
2014-10-07 18:18:24 UTC
Hi All,
I have extended the JCraft library to authenticate my servers with a token
and everything works fine when I use in the serial mode. But when I moved
to a thread pool and try to share the JCraftSession and try to create
multiple channels in large number of threads (I have already increased my
maxSessionCount in sshd_config) I get the following error and I am not sure
what is really going on.
Every 20-30 request I get the below error.
"com.jcraft.jsch.JSchException: channel is not opened."
Anybody using the sessions and creating channels concurrently ? I am not
synchronizing the session in each thread ? Should I synchronize the session
object if I am using in multi-threaded mode ?
Regards
Lahiru
I have extended the JCraft library to authenticate my servers with a token
and everything works fine when I use in the serial mode. But when I moved
to a thread pool and try to share the JCraftSession and try to create
multiple channels in large number of threads (I have already increased my
maxSessionCount in sshd_config) I get the following error and I am not sure
what is really going on.
Every 20-30 request I get the below error.
"com.jcraft.jsch.JSchException: channel is not opened."
Anybody using the sessions and creating channels concurrently ? I am not
synchronizing the session in each thread ? Should I synchronize the session
object if I am using in multi-threaded mode ?
Regards
Lahiru
--
Research Assistant
Science Gateways Group
Indiana University
Research Assistant
Science Gateways Group
Indiana University