Fix file transfers failing at 99% over IRC

Review Request #1385 — Created April 11, 2022 and submitted — Latest diff uploaded

Information

pidgin/pidgin
release-2.x.y

Reviewers

Fix file transfers failing at 99% over IRC

File transfers over IRC sometimes failed because the sender close()d the socket before reading everything from it, resulting in a TCP RST packet being sent, which was interpreted by the receiver as a problem with the connection, sometimes dropping the last few bytes of the file as a result.
This patch reads everything from the socket before closing, thus avoiding the RST packet issue.

Tested on Windows, Linux, Windows-to-Linux and vice-versa IRC file transfers.

Diff Revision 1 (Latest)

Commits

First Last Summary ID Author
Fix file transfers failing at 99% over IRC
52daf9171bd2ecd0feaecbc8f4bb520f5b607a58 Belgin Știrbu
libpurple/ft.c
Loading...