diff options
author | Henric Müller <henric.muller@gmail.com> | 2016-09-07 16:30:55 +0300 |
---|---|---|
committer | Ludovic Henry <ludovic@xamarin.com> | 2016-09-07 16:30:55 +0300 |
commit | f577b619e9d410d7a2868f7c556fc934f03354fa (patch) | |
tree | 75f28a3c1329498d949aec717b6289d83093e989 /acceptance-tests/profiler-stress.mk | |
parent | a231b0a82c0102ed603ff2bdf4f575c99b2317f7 (diff) |
Moving WSAGetLastError calls closer to socket operation (#3450)
* When doing async connect on windows, connect returns `WSAEINPROGRESS`
which needs to be returned to managed code for correct handling. However
on Windows, last error gets reset before `WSAGetLastError` is called.
This fix moves all `WSAGetLastError` calls up closer to the socket
operation to make sure correct error code is returned to the managed code.
* Making sure `TcpNoDelay` is set to false for IPv4 by default and
that `DualMode` is default for IPv6.
* Making sure option value is set to 0 before calling getsockopt
because on Windows, a `BOOL` option value (eg TcpNoDelay) is returned
as a one byte value and the other bytes are left untouched which resulted
in TcpNoDelay always seemed to be true.
* Fixed so `TF_REUSE_SOCKET` is set only if `reuse` parameter is set
when disconnecting a socket.
Diffstat (limited to 'acceptance-tests/profiler-stress.mk')
0 files changed, 0 insertions, 0 deletions