Rico Neubauer created KARAF-7264:
------------------------------------
Summary: SSH Session closed immediately suppresses response to
Client
Key: KARAF-7264
URL: https://issues.apache.org/jira/browse/KARAF-7264
Project: Karaf
Issue Type: Improvement
Components: karaf
Affects Versions: 4.3.3
Reporter: Rico Neubauer
As discussed in channel:
we're encountering an issue with latest 4.3.3, which seems to be caused by this
change: [KARAF-7190]
[https://github.com/apache/karaf/pull/1427/commits/8cc2b247d0ae8b2c95439cf5a45118b8f0eb3b47]
When connecting via SSH (Apache Mina client in our case), we expect a return
code for some of the commands we issue. The code still sends back the command,
but then invokes close with parameter immediate=true. This leads to the return
code almost never arriving at calling client.
If changed to session.close(false), the buffers get flushed and we retrieve the
return code again.
Not sure about the close in factory#destroy - there immediate=true might be ok
Can provide a PR, if liked - please let me know whether with or without the
#close in #destroy
--
This message was sent by Atlassian Jira
(v8.3.4#803005)