-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This patch removes the custom retry limit and timeout in the NatPmp::readResponse function; they were not necessary given that libnatpmp already implements this functionality. This change means that readResponse can no longer return the NATPMP_TRYAGAIN error code. The fact that it could previously seems to be what enabled the bug described in the following issue: https://git.jami.net/savoirfairelinux/jami-client-qt/-/issues/1898 More precisely, it seems that the readResponse function was repeatedly returning NATPMP_TRYAGAIN (even though the mapping requests had actually succeeded), which isn't a "fatal" error (as determined by the NatPmp::isErrorFatal function) and therefore didn't cause the error counter to be incremented and the IGD to be invalidated. GitLab: #43 Change-Id: I1374ba1b40e867399dab0f2dc4f6f75424f4a6b6
- Loading branch information
François-Simon Fauteux-Chapleau
committed
Jan 16, 2025
1 parent
a406c4a
commit d16f816
Showing
2 changed files
with
24 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters