@@ -624,7 +624,7 @@ pub const Loop = struct {
624624 break :action switch (err ) {
625625 windows .ws2_32 .WinsockError .WSA_IO_PENDING = > .{ .submitted = {} },
626626 .WSA_OPERATION_ABORTED , .WSAECONNABORTED = > .{ .result = .{ .send = error .Canceled } },
627- .WSAECONNRESET , .WSAENETRESET = > .{ .result = .{ .send = error .ConnectionReset } },
627+ .WSAECONNRESET , .WSAENETRESET = > .{ .result = .{ .send = error .ConnectionResetByPeer } },
628628 else = > .{ .result = .{ .send = windows .unexpectedWSAError (err ) } },
629629 };
630630 }
@@ -652,7 +652,7 @@ pub const Loop = struct {
652652 break :action switch (err ) {
653653 windows .ws2_32 .WinsockError .WSA_IO_PENDING = > .{ .submitted = {} },
654654 .WSA_OPERATION_ABORTED , .WSAECONNABORTED = > .{ .result = .{ .recv = error .Canceled } },
655- .WSAECONNRESET , .WSAENETRESET = > .{ .result = .{ .recv = error .ConnectionReset } },
655+ .WSAECONNRESET , .WSAENETRESET = > .{ .result = .{ .recv = error .ConnectionResetByPeer } },
656656 else = > .{ .result = .{ .recv = windows .unexpectedWSAError (err ) } },
657657 };
658658 }
@@ -679,7 +679,7 @@ pub const Loop = struct {
679679 break :action switch (err ) {
680680 windows .ws2_32 .WinsockError .WSA_IO_PENDING = > .{ .submitted = {} },
681681 .WSA_OPERATION_ABORTED , .WSAECONNABORTED = > .{ .result = .{ .sendto = error .Canceled } },
682- .WSAECONNRESET , .WSAENETRESET = > .{ .result = .{ .sendto = error .ConnectionReset } },
682+ .WSAECONNRESET , .WSAENETRESET = > .{ .result = .{ .sendto = error .ConnectionResetByPeer } },
683683 else = > .{ .result = .{ .sendto = windows .unexpectedWSAError (err ) } },
684684 };
685685 }
@@ -709,7 +709,7 @@ pub const Loop = struct {
709709 break :action switch (err ) {
710710 windows .ws2_32 .WinsockError .WSA_IO_PENDING = > .{ .submitted = {} },
711711 .WSA_OPERATION_ABORTED , .WSAECONNABORTED = > .{ .result = .{ .recvfrom = error .Canceled } },
712- .WSAECONNRESET , .WSAENETRESET = > .{ .result = .{ .recvfrom = error .ConnectionReset } },
712+ .WSAECONNRESET , .WSAENETRESET = > .{ .result = .{ .recvfrom = error .ConnectionResetByPeer } },
713713 else = > .{ .result = .{ .recvfrom = windows .unexpectedWSAError (err ) } },
714714 };
715715 }
@@ -1049,7 +1049,7 @@ pub const Completion = struct {
10491049 break :r .{
10501050 .send = switch (err ) {
10511051 .WSA_OPERATION_ABORTED , .WSAECONNABORTED = > error .Canceled ,
1052- .WSAECONNRESET , .WSAENETRESET = > error .ConnectionReset ,
1052+ .WSAECONNRESET , .WSAENETRESET = > error .ConnectionResetByPeer ,
10531053 else = > windows .unexpectedWSAError (err ),
10541054 },
10551055 };
@@ -1068,7 +1068,7 @@ pub const Completion = struct {
10681068 break :r .{
10691069 .recv = switch (err ) {
10701070 .WSA_OPERATION_ABORTED , .WSAECONNABORTED = > error .Canceled ,
1071- .WSAECONNRESET , .WSAENETRESET = > error .ConnectionReset ,
1071+ .WSAECONNRESET , .WSAENETRESET = > error .ConnectionResetByPeer ,
10721072 else = > windows .unexpectedWSAError (err ),
10731073 },
10741074 };
@@ -1103,7 +1103,7 @@ pub const Completion = struct {
11031103 break :r .{
11041104 .sendto = switch (err ) {
11051105 .WSA_OPERATION_ABORTED , .WSAECONNABORTED = > error .Canceled ,
1106- .WSAECONNRESET , .WSAENETRESET = > error .ConnectionReset ,
1106+ .WSAECONNRESET , .WSAENETRESET = > error .ConnectionResetByPeer ,
11071107 else = > windows .unexpectedWSAError (err ),
11081108 },
11091109 };
@@ -1122,7 +1122,7 @@ pub const Completion = struct {
11221122 break :r .{
11231123 .recvfrom = switch (err ) {
11241124 .WSA_OPERATION_ABORTED , .WSAECONNABORTED = > error .Canceled ,
1125- .WSAECONNRESET , .WSAENETRESET = > error .ConnectionReset ,
1125+ .WSAECONNRESET , .WSAENETRESET = > error .ConnectionResetByPeer ,
11261126 else = > windows .unexpectedWSAError (err ),
11271127 },
11281128 };
@@ -1351,14 +1351,14 @@ pub const ShutdownError = posix.ShutdownError || error{
13511351
13521352pub const WriteError = windows .WriteFileError || error {
13531353 Canceled ,
1354- ConnectionReset ,
1354+ ConnectionResetByPeer ,
13551355 Unexpected ,
13561356};
13571357
13581358pub const ReadError = windows .ReadFileError || error {
13591359 EOF ,
13601360 Canceled ,
1361- ConnectionReset ,
1361+ ConnectionResetByPeer ,
13621362 Unexpected ,
13631363};
13641364
0 commit comments