Hi Users,

And when I remove the threadpool an still submit a very large load I can
see I am getting the following error intermittently,

com.jcraft.jsch.JSchException: Packet corrupt


        at com.jcraft.jsch.Session.start_discard(Session.java:1049)

        at com.jcraft.jsch.Session.read(Session.java:956)

        at com.jcraft.jsch.UserAuthNone.start(UserAuthNone.java:56)

        at com.jcraft.jsch.Session.connect(Session.java:389)

        at com.jcraft.jsch.Session.connect(Session.java:183)


Regards

Lahiru

On Tue, Oct 7, 2014 at 2:18 PM, Lahiru Gunathilake <glah...@gmail.com>
wrote:

> 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
>
> --
> Research Assistant
> Science Gateways Group
> Indiana University
>



-- 
Research Assistant
Science Gateways Group
Indiana University
------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
JSch-users mailing list
JSch-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to