mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anudeep (Jira)" <j...@apache.org>
Subject [jira] [Commented] (SSHD-938) SSH sessions being closed with invalid packet length
Date Fri, 23 Aug 2019 16:49:00 GMT

    [ https://issues.apache.org/jira/browse/SSHD-938?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16914463#comment-16914463
] 

Anudeep commented on SSHD-938:
------------------------------

Hi @Goldstein Lyor

I understand but can we have some clue what happens if there are few connections in closewait.
Why does it blocks completely.

And what is invalid here the client message ? 

> SSH sessions being closed with invalid packet length
> ----------------------------------------------------
>
>                 Key: SSHD-938
>                 URL: https://issues.apache.org/jira/browse/SSHD-938
>             Project: MINA SSHD
>          Issue Type: Bug
>    Affects Versions: 0.13.0
>            Reporter: Anudeep
>            Assignee: Goldstein Lyor
>            Priority: Blocker
>         Attachments: server.7z
>
>
> SSH connections are being closed with invalid packet length and TCP connection goes into
CLOSE_WAIT state and once CLOSE_WAIT state count crosses 4 no more SSH connection is being
allowed.
> with SSHD-core-0.13.0
>  
> Below is the error
> 2019-08-22 09:53:29,106 INFO  [org.apache.sshd.server.session.ServerSession] (sshd-SshServer[6162dce4]-nio2-thread-2)
Error decoding packet (invalid length) a5 5f 74 5f a6 6f ea 41 02 c0 0a 54 83 22 e4 77 53
7d 0d b9 25 de 36 1d 07 cb cd 43 66 95 51 b2 72 54 d5 4e 2d 0a d5 17 f4 5e 81 4d 6a b8 ab
f7 00 bf 4d 40 f5 56 b7 61 9b 8a be fe 54 d4 89 a2 c5 07 3c de 25 95 44 18 4f 90 dc aa 5b
de 40 85 71 12 cc f6 c0 34 8d 0e 75 95 a5 5b 8d f6 b9 f6 94 04 d8 b5 25 5c d5 58 06 d1 82
68 13 2f 4c a0 ee 78 6b 20 97 52 2d 93 4c 88 bc 17 53 ca eb 34 23 c1 c6 1e 5a f9 31 e7 52
f9 ef 88 03 de e8 af ba 11 5e 97 50 1e c2 26 ba 80 34 55 3f 38 49 0c a9 80 8c a3 fe 6f b6
b6 5d 45 41 e9 e0 e6 d5 15 d6 44 f8 c42019-08-22 09:53:29,106 INFO  [org.apache.sshd.server.session.ServerSession]
(sshd-SshServer[6162dce4]-nio2-thread-2) Error decoding packet (invalid length) a5 5f 74 5f
a6 6f ea 41 02 c0 0a 54 83 22 e4 77 53 7d 0d b9 25 de 36 1d 07 cb cd 43 66 95 51 b2 72 54
d5 4e 2d 0a d5 17 f4 5e 81 4d 6a b8 ab f7 00 bf 4d 40 f5 56 b7 61 9b 8a be fe 54 d4 89 a2
c5 07 3c de 25 95 44 18 4f 90 dc aa 5b de 40 85 71 12 cc f6 c0 34 8d 0e 75 95 a5 5b 8d f6
b9 f6 94 04 d8 b5 25 5c d5 58 06 d1 82 68 13 2f 4c a0 ee 78 6b 20 97 52 2d 93 4c 88 bc 17
53 ca eb 34 23 c1 c6 1e 5a f9 31 e7 52 f9 ef 88 03 de e8 af ba 11 5e 97 50 1e c2 26 ba 80
34 55 3f 38 49 0c a9 80 8c a3 fe 6f b6 b6 5d 45 41 e9 e0 e6 d5 15 d6 44 f8 c42019-08-22 09:53:29,106
DEBUG [org.apache.sshd.common.io.nio2.Nio2Session] (sshd-SshServer[6162dce4]-nio2-thread-2)
Caught exception, now calling handler2019-08-22 09:53:29,106 WARN  [org.apache.sshd.server.session.ServerSession]
(sshd-SshServer[6162dce4]-nio2-thread-2) Exception caught: org.apache.sshd.common.SshException:
Invalid packet length: -16976455 at org.apache.sshd.common.session.AbstractSession.decode(AbstractSession.java:677)
[sshd-core-0.13.0.jar:0.13.0] at org.apache.sshd.common.session.AbstractSession.messageReceived(AbstractSession.java:283)
[sshd-core-0.13.0.jar:0.13.0] at org.apache.sshd.common.AbstractSessionIoHandler.messageReceived(AbstractSessionIoHandler.java:54)
[sshd-core-0.13.0.jar:0.13.0] at org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:184)
[sshd-core-0.13.0.jar:0.13.0] at org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:170)
[sshd-core-0.13.0.jar:0.13.0] at org.apache.sshd.common.io.nio2.Nio2CompletionHandler$1.run(Nio2CompletionHandler.java:32)
[sshd-core-0.13.0.jar:0.13.0] at java.security.AccessController.doPrivileged(Native Method)
[rt.jar:1.8.0_172] at org.apache.sshd.common.io.nio2.Nio2CompletionHandler.completed(Nio2CompletionHandler.java:30)
[sshd-core-0.13.0.jar:0.13.0] at sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:126) [rt.jar:1.8.0_172]
at sun.nio.ch.Invoker$2.run(Invoker.java:218) [rt.jar:1.8.0_172] at sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:112)
[rt.jar:1.8.0_172] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[rt.jar:1.8.0_172]



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org
For additional commands, e-mail: dev-help@mina.apache.org


Mime
View raw message