You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jean-Baptiste Onofré (Jira)" <ji...@apache.org> on 2021/11/30 05:20:00 UTC

[jira] [Resolved] (KARAF-7264) SSH Session closed immediately suppresses response to Client

     [ https://issues.apache.org/jira/browse/KARAF-7264?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Baptiste Onofré resolved KARAF-7264.
-----------------------------------------
    Resolution: Fixed

> 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
>            Assignee: Jean-Baptiste Onofré
>            Priority: Major
>
> 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.20.1#820001)