[ovs-dev] [PATCH 08/17] test-vconn: Change the expected error for Windows.

Ben Pfaff blp at nicira.com
Thu Jun 26 20:26:29 UTC 2014


On Tue, Jun 24, 2014 at 11:52:54AM -0700, Gurucharan Shetty wrote:
> On Windows ECONNRESET is WSAECONNRESET.
> 
> Also, "unix" connections are done through TCP sockets.
> For the 'refuse-connection' test, the error message for Windows
> is WSAECONNRESET instead of EPIPE.
> 
> Signed-off-by: Gurucharan Shetty <gshetty at nicira.com>

I'm a little confused about why Windows has error codes like ECONNRESET
if it never uses them.  Is there any reason not to add something like

#if _WIN32
#undef ECONNRESET
#define ECONNRESET WSAECONNRESET
#endif

to a header file?  Then two of the three changes here wouldn't be
necessary.



More information about the dev mailing list