Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Windows error translation to make GnuTLS happy
It really wants a read/write on a non-blocking socket to return EAGAIN, which is kind of a pain because what we actually get is WSAEINPROGRESS. And if we translate *that* to EAGAIN then our check for a pending connect() will break. So ditch neterrno() completely and have a special case for the result of connect, and then openconnect__win32_neterrno() is for GnuTLS only. Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
- Loading branch information
David Woodhouse
authored and
David Woodhouse
committed
Feb 10, 2014
1 parent
950a24c
commit b5df97e
Showing
3 changed files
with
21 additions
and
14 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