Entering Jsch into the connection pool in detail

I put Jsch in a shared pool (with support for spring support) with initial success

http://docs.spring.io/spring/docs/3.2.4.RELEASE/spring-framework-reference/htmlsingle/#aop-ts-pool

But:

  • Should we merge channels in a session instead of merging sessions? Each Jsch session creates one thread. Jsch session pooling will create x threads. A channel pool, there really will be only one Jsch stream.

  • (commons-pool), what happens if the Jsch session is out of date? How to restore a session in the context of a shared pool or using spring pool support? How to discover that it is out of date?

thanks

+4
source share
2 answers

. .

  • . ( sftp).

  • JSch ( ) spring . github . : , .

, 1 - , , ( , ) . . , "" , .

, :

a) (, 10) , . ) 20 c) , .

a) == 7, "iptable drop (linux) pfctl -e; pfctl -f/etc/pf.conf(mac, google, !)". , .

b)

c) , .

+4

All Articles