2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-30 13:47:41 +00:00

A SO_TIMEOUT of 1 second often leads to the socket timing out when transferring large files.

Summary:
When receiving large files (even worse when uploading multiple files) the receiving socket
often times-out.

Test Plan:
Send 1 or 2 big files from desktop to android without this patch and you should see 1 or both transfers
fail because of a SO_TIMEOUT

Apply this patch and re-run the test and both transfers should now complete without an SO_TIMEOUT

Reviewers: #kde_connect, albertvaka

Reviewed By: #kde_connect, albertvaka

Subscribers: zhigalin, albertvaka, kdeconnect

Tags: #kde_connect

Differential Revision: https://phabricator.kde.org/D16758
This commit is contained in:
Erik Duisters
2018-11-08 19:05:07 +01:00
parent 178e5ca050
commit 96b0a9ea9b

View File

@@ -215,7 +215,7 @@ public class SslHelper {
supportedCiphers.add("TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA"); // API 11+
socket.setEnabledCipherSuites(supportedCiphers.toArray(new String[0]));
socket.setSoTimeout(1000);
socket.setSoTimeout(10000);
if (isClient) {
socket.setUseClientMode(true);