[jira] [Comment Edited] (SSHD-952) What is the expected behavior of waitForSpace(long millis) method on default timeout of 30 seconds

2019-11-07 Thread Anudeep (Jira)


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

Anudeep edited comment on SSHD-952 at 11/7/19 9:20 AM:
---

Hi [~lgoldstein],

We tried in a different manner this time ,instead of blocking the read 
completely we added sleep while reading the data from channel on the client 
side .

This time even after the timeout it was still continuing for some time and got 
exited(channel got closed with an exception after some time). I suppose this 
behavior might be due to sleep which we introduced at client side.
{code:java}

2019-11-07 05:42:24,630 INFO  [com.ericsson.oss.itpf.EVENT_LOGGER] (EJB default 
- 73) [NO USER DATA, Started BNSI NBI, COARSE, BNSI NBI Client, BNSI NBI 
Server, ]
2019-11-07 05:42:26,611 DEBUG [org.apache.sshd.server.channel.ChannelSession] 
(pool-7-thread-3) flush(ChannelOutputStream[ChannelSession[id=0, 
recipient=43]-ServerSessi
onImpl[administrator@/192.168.0.42:49984]] SSH_MSG_CHANNEL_DATA) failed 
(SocketTimeoutException) to wait for space of len=23892: 
waitForCondition(Window[server/remote](
ChannelSession[id=0, 
recipient=43]-ServerSessionImpl[administrator@/192.168.0.42:49984])) timeout 
exceeded: 3


 pStatus=0.%A
2019-11-07 05:42:33,149 DEBUG [org.apache.sshd.common.io.nio2.Nio2Session] 
(sshd-SshServer[57e76ebb](port=8345)-nio2-thread-2) 
exceptionCaught(Nio2Session[local=/10.247
.246.52:8345, remote=/192.168.0.42:49984]) caught 
InterruptedByTimeoutException[null] - calling handler
2019-11-07 05:42:33,149 WARN  
[org.apache.sshd.server.session.ServerSessionImpl] 
(sshd-SshServer[57e76ebb](port=8345)-nio2-thread-2) 
exceptionCaught(ServerSessionImpl[a
dministrator@/192.168.0.42:49984])[state=Opened] InterruptedByTimeoutException: 
null
2019-11-07 05:42:33,150 DEBUG 
[org.apache.sshd.server.session.ServerSessionImpl] 
(sshd-SshServer[57e76ebb](port=8345)-nio2-thread-2) 
exceptionCaught(ServerSessionImpl[a
dministrator@/192.168.0.42:49984])[state=Opened] details: 
java.nio.channels.InterruptedByTimeoutException
at 
sun.nio.ch.UnixAsynchronousSocketChannelImpl$1.run(UnixAsynchronousSocketChannelImpl.java:456)
 [rt.jar:1.8.0_221]
at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
[rt.jar:1.8.0_221]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) 
[rt.jar:1.8.0_221]
at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
 [rt.jar:1.8.0_221]
at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
 [rt.jar:1.8.0_221]
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 
[rt.jar:1.8.0_221]
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 
[rt.jar:1.8.0_221]
:

{code}


Thanks,
Anudeep


was (Author: anudeepgangasani):
Hi [~lgoldstein],

We tried in a different manner this time ,instead of blocking the read 
completely we added sleep while reading the data from channel on the client 
side .

This time even after the timeout it was still continuing for some time and got 
exited(channel got closed with an exception after some time). I suppose this 
behavior might be due to sleep which we introduced at client side.
{code:java}
 
pStatus=0.%A
2019-11-07 05:42:33,149 DEBUG [org.apache.sshd.common.io.nio2.Nio2Session] 
(sshd-SshServer[57e76ebb](port=8345)-nio2-thread-2) 
exceptionCaught(Nio2Session[local=/10.247
.246.52:8345, remote=/192.168.0.42:49984]) caught 
InterruptedByTimeoutException[null] - calling handler
2019-11-07 05:42:33,149 WARN  
[org.apache.sshd.server.session.ServerSessionImpl] 
(sshd-SshServer[57e76ebb](port=8345)-nio2-thread-2) 
exceptionCaught(ServerSessionImpl[a
dministrator@/192.168.0.42:49984])[state=Opened] InterruptedByTimeoutException: 
null
2019-11-07 05:42:33,150 DEBUG 
[org.apache.sshd.server.session.ServerSessionImpl] 
(sshd-SshServer[57e76ebb](port=8345)-nio2-thread-2) 
exceptionCaught(ServerSessionImpl[a
dministrator@/192.168.0.42:49984])[state=Opened] details: 
java.nio.channels.InterruptedByTimeoutException
at 
sun.nio.ch.UnixAsynchronousSocketChannelImpl$1.run(UnixAsynchronousSocketChannelImpl.java:456)
 [rt.jar:1.8.0_221]
at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
[rt.jar:1.8.0_221]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) 
[rt.jar:1.8.0_221]
at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
 [rt.jar:1.8.0_221]
at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledT

[jira] [Comment Edited] (SSHD-952) What is the expected behavior of waitForSpace(long millis) method on default timeout of 30 seconds

2019-11-05 Thread Anudeep (Jira)


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

Anudeep edited comment on SSHD-952 at 11/5/19 12:41 PM:


In our test we blocked client to read data to make the window full and then we 
observed it was timing out and spawning a new thread. Client session was not 
closed.

Regards,
Anudeep


was (Author: anudeepgangasani):
In our test we blocked client to read data to make the window full and then we 
observed it was timing out and then spawning a new thread.Client session was 
not closed.

Regards,
Anudeep

> What is the expected behavior of waitForSpace(long millis) method on default 
> timeout of 30 seconds
> --
>
> Key: SSHD-952
> URL: https://issues.apache.org/jira/browse/SSHD-952
> Project: MINA SSHD
>  Issue Type: Question
>Affects Versions: 2.2.0
>Reporter: Anudeep
>Priority: Major
>
> Hi Team,
> Can you please let us know the expected behavior of waitForSpace(long millis) 
> method of Window.java class . As per our test we see on timeout thread get 
> released and it spawns a new thread on timeout. Is this an expected behavior ?
> 2019-10-24 12:33:26,123 DEBUG [org.apache.sshd.server.channel.ChannelSession] 
> (Thread-44 (HornetQ-client-global-threads-407809182)) 
> flush(ChannelOutputStream[ChannelSession[id=0, 
> recipient=43]-ServerSessionImpl[administrator@/141.137.237.205:58628]] 
> SSH_MSG_CHANNEL_DATA) failed (SocketTimeoutException) to wait for space of 
> len=1190: waitForCondition(Window[server/remote](ChannelSession[id=0, 
> recipient=43]-ServerSessionImpl[administrator@/141.137.237.205:58628])) 
> timeout exceeded: 2
> 2019-10-24 12:33:46,126 DEBUG [org.apache.sshd.server.channel.ChannelSession] 
> (Thread-44 (HornetQ-client-global-threads-407809182)) 
> flush(ChannelOutputStream[ChannelSession[id=0, 
> recipient=43]-ServerSessionImpl[administrator@/141.137.237.205:58628]] 
> SSH_MSG_CHANNEL_DATA) failed (SocketTimeoutException) to wait for space of 
> len=1190: waitForCondition(Window[server/remote](ChannelSession[id=0, 
> recipient=43]-ServerSessionImpl[administrator@/141.137.237.205:58628])) 
> timeout exceeded: 2
> 2019-10-24 12:34:06,129 DEBUG [org.apache.sshd.server.channel.ChannelSession] 
> (Thread-44 (HornetQ-client-global-threads-407809182)) 
> flush(ChannelOutputStream[ChannelSession[id=0, 
> recipient=43]-ServerSessionImpl[administrator@/141.137.237.205:58628]] 
> SSH_MSG_CHANNEL_DATA) failed (SocketTimeoutException) to wait for space of 
> len=1190: waitForCondition(Window[server/remote](ChannelSession[id=0, 
> recipient=43]-ServerSessionImpl[administrator@/141.137.237.205:58628])) 
> timeout exceeded: 2



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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



[jira] [Comment Edited] (SSHD-952) What is the expected behavior of waitForSpace(long millis) method on default timeout of 30 seconds

2019-10-30 Thread Anudeep (Jira)


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

Anudeep edited comment on SSHD-952 at 10/30/19 7:20 AM:


Hi [~lgoldstein],

I believe timeout was introduced to unblock the threads ,in previous versions 
if there is no space thread was waiiting and if there is closure due to some 
invalid chunk of data from client thread was blocked for ever and now with new 
implementation at-least thread gets released after some timeout.

We have seen a case in  previous versions if there are 3 blocked threads no new 
session was served as threads are exhausted.

I want to understand if current logic will close the client session if the 
threads gets timed out  or will it keep open until it free some space on the 
channel?

Regards,
Anudeep


was (Author: anudeepgangasani):
Hi [~lgoldstein],

I believe timeout was introduced to unblock the threads ,in previous versions 
if there is no space thread was blocked for ever and now with new 
implementation at-least thread gets released after some timeout.

We have seen a case in  previous versions if there are 3 blocked threads no new 
session was served as threads are exhausted.

I want to understand if current logic will close the client session if the 
threads gets timed out  or will it keep open until it free some space on the 
channel?

Regards,
Anudeep

> What is the expected behavior of waitForSpace(long millis) method on default 
> timeout of 30 seconds
> --
>
> Key: SSHD-952
> URL: https://issues.apache.org/jira/browse/SSHD-952
> Project: MINA SSHD
>  Issue Type: Question
>Affects Versions: 2.2.0
>Reporter: Anudeep
>Priority: Major
>
> Hi Team,
> Can you please let us know the expected behavior of waitForSpace(long millis) 
> method of Window.java class . As per our test we see on timeout thread get 
> released and it spawns a new thread on timeout. Is this an expected behavior ?
> 2019-10-24 12:33:26,123 DEBUG [org.apache.sshd.server.channel.ChannelSession] 
> (Thread-44 (HornetQ-client-global-threads-407809182)) 
> flush(ChannelOutputStream[ChannelSession[id=0, 
> recipient=43]-ServerSessionImpl[administrator@/141.137.237.205:58628]] 
> SSH_MSG_CHANNEL_DATA) failed (SocketTimeoutException) to wait for space of 
> len=1190: waitForCondition(Window[server/remote](ChannelSession[id=0, 
> recipient=43]-ServerSessionImpl[administrator@/141.137.237.205:58628])) 
> timeout exceeded: 2
> 2019-10-24 12:33:46,126 DEBUG [org.apache.sshd.server.channel.ChannelSession] 
> (Thread-44 (HornetQ-client-global-threads-407809182)) 
> flush(ChannelOutputStream[ChannelSession[id=0, 
> recipient=43]-ServerSessionImpl[administrator@/141.137.237.205:58628]] 
> SSH_MSG_CHANNEL_DATA) failed (SocketTimeoutException) to wait for space of 
> len=1190: waitForCondition(Window[server/remote](ChannelSession[id=0, 
> recipient=43]-ServerSessionImpl[administrator@/141.137.237.205:58628])) 
> timeout exceeded: 2
> 2019-10-24 12:34:06,129 DEBUG [org.apache.sshd.server.channel.ChannelSession] 
> (Thread-44 (HornetQ-client-global-threads-407809182)) 
> flush(ChannelOutputStream[ChannelSession[id=0, 
> recipient=43]-ServerSessionImpl[administrator@/141.137.237.205:58628]] 
> SSH_MSG_CHANNEL_DATA) failed (SocketTimeoutException) to wait for space of 
> len=1190: waitForCondition(Window[server/remote](ChannelSession[id=0, 
> recipient=43]-ServerSessionImpl[administrator@/141.137.237.205:58628])) 
> timeout exceeded: 2



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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



[jira] [Comment Edited] (SSHD-952) What is the expected behavior of waitForSpace(long millis) method on default timeout of 30 seconds

2019-10-30 Thread Anudeep (Jira)


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

Anudeep edited comment on SSHD-952 at 10/30/19 7:15 AM:


Hi [~lgoldstein],

I believe timeout was introduced to unblock the threads ,in previous versions 
if there is no space thread was blocked for ever and now with new 
implementation at-least thread gets released after some timeout.

We have seen a case in  previous versions if there are 3 blocked threads no new 
session was served as threads are exhausted.

I want to understand if current logic will close the client session if the 
threads gets timed out  or will it keep open until it free some space on the 
channel?

Regards,
Anudeep


was (Author: anudeepgangasani):
Hi [~lgoldstein],

I believe timeout was introduced to unblock the threads ,in previous versions 
if there is no space thread was blocked for ever and now with new 
implementation at-least thread gets released after some timeout.

We have seen a case in  previous versions if there are 3 blocked threads no new 
session was served as threads are exhausted.

I want to understand if current logic will close the client session if the 
threads gets timed out ?

Regards,
Anudeep

> What is the expected behavior of waitForSpace(long millis) method on default 
> timeout of 30 seconds
> --
>
> Key: SSHD-952
> URL: https://issues.apache.org/jira/browse/SSHD-952
> Project: MINA SSHD
>  Issue Type: Question
>Affects Versions: 2.2.0
>Reporter: Anudeep
>Priority: Major
>
> Hi Team,
> Can you please let us know the expected behavior of waitForSpace(long millis) 
> method of Window.java class . As per our test we see on timeout thread get 
> released and it spawns a new thread on timeout. Is this an expected behavior ?
> 2019-10-24 12:33:26,123 DEBUG [org.apache.sshd.server.channel.ChannelSession] 
> (Thread-44 (HornetQ-client-global-threads-407809182)) 
> flush(ChannelOutputStream[ChannelSession[id=0, 
> recipient=43]-ServerSessionImpl[administrator@/141.137.237.205:58628]] 
> SSH_MSG_CHANNEL_DATA) failed (SocketTimeoutException) to wait for space of 
> len=1190: waitForCondition(Window[server/remote](ChannelSession[id=0, 
> recipient=43]-ServerSessionImpl[administrator@/141.137.237.205:58628])) 
> timeout exceeded: 2
> 2019-10-24 12:33:46,126 DEBUG [org.apache.sshd.server.channel.ChannelSession] 
> (Thread-44 (HornetQ-client-global-threads-407809182)) 
> flush(ChannelOutputStream[ChannelSession[id=0, 
> recipient=43]-ServerSessionImpl[administrator@/141.137.237.205:58628]] 
> SSH_MSG_CHANNEL_DATA) failed (SocketTimeoutException) to wait for space of 
> len=1190: waitForCondition(Window[server/remote](ChannelSession[id=0, 
> recipient=43]-ServerSessionImpl[administrator@/141.137.237.205:58628])) 
> timeout exceeded: 2
> 2019-10-24 12:34:06,129 DEBUG [org.apache.sshd.server.channel.ChannelSession] 
> (Thread-44 (HornetQ-client-global-threads-407809182)) 
> flush(ChannelOutputStream[ChannelSession[id=0, 
> recipient=43]-ServerSessionImpl[administrator@/141.137.237.205:58628]] 
> SSH_MSG_CHANNEL_DATA) failed (SocketTimeoutException) to wait for space of 
> len=1190: waitForCondition(Window[server/remote](ChannelSession[id=0, 
> recipient=43]-ServerSessionImpl[administrator@/141.137.237.205:58628])) 
> timeout exceeded: 2



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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