You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When setting a session timeout, the behaviour seems incorrect! Consider this code that connects via ssh and runs sleep 30 && echo DONE to sleep for 30 seconds:
I expect the session to timeout after 15 seconds, but instead it times out after 30 seconds! If instead we have timeout_ms = 5_000 then it times out after 15 seconds. From my experimenting I think the current (unexpected) behaviour is as follows:
If the command blocks for duation t and t < timeout then return Ok
If the command blocks for duation t and t > 3*timeout then return a timeout error at time 3*timeout.
If the command blocks for duation t and timeout < t < 3*timeout_ms then return a timeout error at time t
I'm running on windows and with ssh2-0.9.4
The text was updated successfully, but these errors were encountered:
When setting a session timeout, the behaviour seems incorrect! Consider this code that connects via ssh and runs
sleep 30 && echo DONE
to sleep for 30 seconds:I expect the session to timeout after 15 seconds, but instead it times out after 30 seconds! If instead we have
timeout_ms = 5_000
then it times out after 15 seconds. From my experimenting I think the current (unexpected) behaviour is as follows:If the command blocks for duation
t
andt < timeout
then return OkIf the command blocks for duation
t
andt > 3*timeout
then return a timeout error at time3*timeout
.If the command blocks for duation
t
andtimeout < t < 3*timeout_ms
then return a timeout error at timet
I'm running on windows and with ssh2-0.9.4
The text was updated successfully, but these errors were encountered: