https://bugs.kde.org/show_bug.cgi?id=528939

Albert Vaca Cintora <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|https://invent.kde.org/netw |https://invent.kde.org/netw
                   |ork/kdeconnect-kde/-/commit |ork/kdeconnect-kde/-/commit
                   |/78fd50bd667e21378964e1fc72 |/289cae751aa8ff7ed6fd997029
                   |4dc73c8aaa1cc7              |e2d182756c9ead

--- Comment #3 from Albert Vaca Cintora <[email protected]> ---
Git commit 289cae751aa8ff7ed6fd997029e2d182756c9ead by Albert Vaca Cintora, on
behalf of JAEHEUNG CHO.
Committed on 17/11/2026 at 02:21.
Pushed by albertvaka into branch 'release/26.12'.

Fail incoming file transfer when the payload connection fails

FileTransferJob::doStart() only waits for readyRead on the payload socket.
If the connection to the sender's payload port fails, or is closed before
any data arrives, that signal never comes and the job never finishes.
CompositeFileTransferJob runs one subjob at a time and SharePlugin keeps
adding incoming files to the same composite job, so every later file waits
behind the stuck one: the sender reports them as sent, but nothing is
written until the device disconnects or the daemon is restarted.

This happens when a share request reaches us late, for example one sent
while the desktop was asleep. Android gives up after 10 seconds and closes
its payload port, but the request is still delivered after wake-up.

End the job with an error if the payload socket reports an error, or is
already unconnected when the job starts, and nothing has been received.

Assisted-by: Claude Fable 5.2 (Claude Code)
(cherry picked from commit 78fd50bd667e21378964e1fc724dc73c8aaa1cc7)

M  +17   -0    core/filetransferjob.cpp
M  +66   -0    tests/sendfiletest.cpp

https://invent.kde.org/network/kdeconnect-kde/-/commit/289cae751aa8ff7ed6fd997029e2d182756c9ead

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to