This repository was archived by the owner on Oct 15, 2024. It is now read-only.
File tree 2 files changed +10
-0
lines changed
app/src/main/java/com/zeapo/pwdstore/git/operation
2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ All notable changes to this project will be documented in this file.
15
15
- Icons in Autofill suggestions are no longer black on almost black in dark mode.
16
16
- Decrypt screen would stay in memory infinitely, allowing passwords to be seen without re-auth
17
17
- Git commits in the store would wrongly use the 'default' committer as opposed to the user's configured one
18
+ - Connection attempts now use a reasonable 10 second timeout as opposed to the default of 30 seconds
18
19
19
20
### Changed
20
21
Original file line number Diff line number Diff line change @@ -108,6 +108,7 @@ abstract class GitOperation(protected val callingActivity: FragmentActivity) {
108
108
(transport as ? SshTransport )?.sshSessionFactory = sshSessionFactory
109
109
credentialsProvider?.let { transport.credentialsProvider = it }
110
110
}
111
+ command.setTimeout(CONNECT_TIMEOUT )
111
112
}
112
113
}
113
114
@@ -204,4 +205,12 @@ abstract class GitOperation(protected val callingActivity: FragmentActivity) {
204
205
sshSessionFactory?.close()
205
206
}
206
207
}
208
+
209
+ companion object {
210
+
211
+ /* *
212
+ * Timeout in seconds before [TransportCommand] will abort a stalled IO operation.
213
+ */
214
+ private const val CONNECT_TIMEOUT = 10
215
+ }
207
216
}
You can’t perform that action at this time.
0 commit comments