A SO_TIMEOUT of 1 second often leads to the socket timing out when transferring…

Authored by eduisters on Nov 8 2018, 6:05 PM.

Description

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