forked from FreeRDP/FreeRDP
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TCP/Transport: Fix tcp handling on win32.
1. Fix socket event (created by WSAEventCreate) handling for win32. This is to fix the issue which uncovered by FreeRDP#2750. We used to fall in loop after 2750. The reason is event created by WSAEventSelect on windows need manually reset, it is always in 'set' state even when we run out of the read buffer. It was first fixed in PR 2770. However the solution introduced another issue on Linux. This PR discards the fix in 2770 Later A quick fix for 2770 was introduced in 2790/2791. It is also discarded together. This fix try to keep usage same on Windows and Posix. 2. Fix argument for WSAEventSelect on win32 to be consistent with Linux. 3. Fix tcp event for listener.
- Loading branch information
1 parent
ad4a862
commit cafb2f7
Showing
3 changed files
with
51 additions
and
12 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
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