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/08/29 05:50:00 UTC
[jira] [Commented] (KARAF-7190) SSH session not properly closed by
Karaf
[ https://issues.apache.org/jira/browse/KARAF-7190?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17406362#comment-17406362 ]
Jean-Baptiste Onofré commented on KARAF-7190:
---------------------------------------------
It's not related to ssh client (\{{client}}) but to ssh server because I'm observing the same behavior with openssh client. I'm checking.
> SSH session not properly closed by Karaf
> ----------------------------------------
>
> Key: KARAF-7190
> URL: https://issues.apache.org/jira/browse/KARAF-7190
> Project: Karaf
> Issue Type: Bug
> Components: karaf
> Affects Versions: 4.2.11, 4.3.2
> Reporter: Nicolas Dutertry
> Assignee: Jean-Baptiste Onofré
> Priority: Major
>
> After using « client » script, the tcp socket is not closed by Karaf and remains in CLOSE_WAIT state. The session is only closed after ssh timeout is reached.
> For instance with a SSH timeout set to 30 s :
> {code:java}
> $ ./client “bundle:list”
>
> $ netstat | grep 8101
> tcp6 0 0 localhost:8101 localhost:47844 CLOSE_WAIT
>
> $ tail karaf.log
> INFO | sshd-SshServer[2f716f77](port=8101)-nio2-thread-1 | ServerSessionImpl | 46 - org.apache.sshd.osgi - 2.5.1 | Session karaf@/127.0.0.1:47844 authenticated
> INFO | sshd-SshServer[2f716f77](port=8101)-timer-thread-1 | ServerSessionImpl | 46 - org.apache.sshd.osgi - 2.5.1 | Disconnecting(ServerSessionImpl[karaf@/127.0.0.1:47844]): SSH2_DISCONNECT_PROTOCOL_ERROR - Detected IdleTimeout after 30415/30000 ms.{code}
> The issue is the same with:
> {code:java}
> $ bin/client{code}
> And then CTRL-D
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)