Alex Heneveld
559384ac91
restore the interrupt flag whenever we catch InterruptedException ( #801 )
...
Co-authored-by: Alex Heneveld <alex@cloudsoft.io >
2022-08-08 14:09:18 +02:00
exceptionfactory
c0f6000ff5
Updated KeepAlive and RemotePF examples ( #791 )
...
- Set KeepAlive interval before connecting
2022-07-12 17:01:35 +02:00
exceptionfactory
90099bbf5e
Updated SSHClient to interrupt KeepAlive Thread when disconnecting ( #506 ) ( #752 )
...
- Changed KeepAlive.setKeepAliveInterval() to avoid starting Thread
- Updated SSHClient.onConnect() to start KeepAlive Thread when enabled
- Updated SSHClient.disconnect() to interrupt KeepAlive Thread
- Updated KeepAliveThreadTerminationTest to verify state of KeepAlive Thread
Co-authored-by: Jeroen van Erp <jeroen@hierynomus.com >
2021-12-22 16:55:09 +01:00
Simon Legner
2ca0fa4732
Use daemon thread to avoid blocking JVM shutdown ( #605 )
2020-06-23 12:48:11 +02:00
Jeroen van Erp
920537dac9
More cleaning up
2017-01-20 16:41:16 +01:00
gatesking
3ce7c2ebfb
Catch interrupt signal in keepalive thread
...
Interrupt signal may be catched when keepalive thread is sleeping. As a result, it will still go into conn.getTransport().die(e).
2016-11-30 09:30:57 +08:00
David Solin
219901211e
Changes for injecting a LoggingFactory.
2016-08-23 19:13:43 -05:00
Jeroen van Erp
bc41908694
Added gradle release and license plugins, and updated all license headers
2016-04-11 15:48:43 +02:00
hierynomus
7ae84be548
Fixed build by adding license headers to new files
2015-01-19 11:54:55 +01:00
hierynomus
a7802ddcde
Added keep-alive mechanism that detects disconnects ( Fixes #166 )
2015-01-19 10:05:03 +01:00