Re: Reg: Change the buffer size

2019-09-06 Thread Gokkulasudan Rathnakumar
Hi Thomas,
Thanks for the clarification. Then is there a way to restrict the growth of
the buffer size? Say not to exceed 65k or so?




On Fri, Sep 6, 2019, 6:04 PM Thomas Charron  wrote:

>   Umm, it resizes itself, 1024 is just the initial size.
>
>Thomas
>
>
> On Fri, Sep 6, 2019, 7:49 PM Gokkulasudan Rathnakumar <
> gokkulasudan...@gmail.com> wrote:
>
>> Hi All,
>> Is there a way to change the buffer size in SftpSubsystem under apache
>> sshd
>> 2.1.0?
>>
>> Note: I see it as *protected final Buffer buffer = new
>> ByteArrayBuffer(1024);*
>>
>> Thanks & regards,
>> Gokkulasudan Rathnakumar.
>>
>


Re: Reg: Change the buffer size

2019-09-06 Thread Thomas Charron
  Umm, it resizes itself, 1024 is just the initial size.

   Thomas


On Fri, Sep 6, 2019, 7:49 PM Gokkulasudan Rathnakumar <
gokkulasudan...@gmail.com> wrote:

> Hi All,
> Is there a way to change the buffer size in SftpSubsystem under apache sshd
> 2.1.0?
>
> Note: I see it as *protected final Buffer buffer = new
> ByteArrayBuffer(1024);*
>
> Thanks & regards,
> Gokkulasudan Rathnakumar.
>


Reg: Change the buffer size

2019-09-06 Thread Gokkulasudan Rathnakumar
Hi All,
Is there a way to change the buffer size in SftpSubsystem under apache sshd
2.1.0?

Note: I see it as *protected final Buffer buffer = new
ByteArrayBuffer(1024);*

Thanks & regards,
Gokkulasudan Rathnakumar.


[jira] [Commented] (SSHD-938) SSH sessions being closed with invalid packet length

2019-09-06 Thread Anudeep (Jira)


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

Anudeep commented on SSHD-938:
--

Hi [~lgoldstein],

One quick question.

Is there a way to decrypt the above packet to understand what actually it is.

I mean this message

 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 

 

Regards,

Anudeep

> 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: