Commit 3410b467 authored by Kenton Varda's avatar Kenton Varda

Fix TwoPartyNetwork/Pipelining test on MSVC.

I can only reproduce this failure on AppVeyor, but the test prints:

capnp\rpc.c++:2886: exception = kj\async-io-win32.c++:399: failed: WSASend(): A request to send or receive data was disallowed because the socket had already been shut down in that direction with a previous shutdown call.

I think this is because WSAESHUTDOWN was considered to be a "bug" exception rather than a "disconnected" exception. It is odd, though, that it doesn't happen when I run locally.
parent cb2628ec
...@@ -150,6 +150,7 @@ Exception::Type typeOfWin32Error(DWORD error) { ...@@ -150,6 +150,7 @@ Exception::Type typeOfWin32Error(DWORD error) {
case WSAENETDOWN: case WSAENETDOWN:
case WSAENETRESET: case WSAENETRESET:
case WSAENETUNREACH: case WSAENETUNREACH:
case WSAESHUTDOWN:
return Exception::Type::DISCONNECTED; return Exception::Type::DISCONNECTED;
case WSAEOPNOTSUPP: case WSAEOPNOTSUPP:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment