Could SFtp expose JSch's Session.setTimeout()?
I am using the official B4A SFtp library for SFTP uploads over mobile connections.
In some cases an upload can remain blocked for around 2 minutes and eventually fail with:
ECONNABORTED
If I start the same upload again, it can succeed almost immediately, so I would like to use a shorter socket timeout and retry the operation with a fresh SFTP connection.
I tried accessing the underlying JSch Session using JavaObject, but SFtpWrapper does not expose a session field.
Would it be possible to add a public property or method such as:
SetTimeout(30000)
or:
TimeoutMs = 30000
which internally calls JSch:
session.setTimeout(timeout)
This would be useful for detecting stalled/broken connections earlier while still allowing normal slow transfers to continue as long as data is being transferred.
Thank you.
I am using the official B4A SFtp library for SFTP uploads over mobile connections.
In some cases an upload can remain blocked for around 2 minutes and eventually fail with:
ECONNABORTED
If I start the same upload again, it can succeed almost immediately, so I would like to use a shorter socket timeout and retry the operation with a fresh SFTP connection.
I tried accessing the underlying JSch Session using JavaObject, but SFtpWrapper does not expose a session field.
Would it be possible to add a public property or method such as:
SetTimeout(30000)
or:
TimeoutMs = 30000
which internally calls JSch:
session.setTimeout(timeout)
This would be useful for detecting stalled/broken connections earlier while still allowing normal slow transfers to continue as long as data is being transferred.
Thank you.