File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
include/private/coherence/native/windows Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2000, 2020 , Oracle and/or its affiliates.
2
+ * Copyright (c) 2000, 2023 , Oracle and/or its affiliates.
3
3
*
4
4
* Licensed under the Universal Permissive License v 1.0 as shown at
5
- * http ://oss.oracle.com/licenses/upl.
5
+ * https ://oss.oracle.com/licenses/upl.
6
6
*/
7
7
#ifndef COH_WINDOWS_SOCKET_HPP
8
8
#define COH_WINDOWS_SOCKET_HPP
@@ -309,9 +309,6 @@ class COH_EXPORT WindowsSocket
309
309
int nError = WSAGetLastError ();
310
310
switch (nError)
311
311
{
312
- case WSA_IO_PENDING: // Bug 25237462 - we should not get WSA_IO_PENDING. Handle as a soft error
313
- COH_LOG (" Handling unexpected socket " << (chan == channel_in ? " input" : " output" ) << " return of WSA_IO_PENDING as WSAEWOULDBLOCK" , 9 );
314
- // fall through
315
312
case WSAEWOULDBLOCK:
316
313
case WSAEINTR:
317
314
case WSAEINPROGRESS:
@@ -587,7 +584,9 @@ class COH_EXPORT WindowsSocket
587
584
: fIn ? SD_RECEIVE : SD_SEND))
588
585
{
589
586
int nError = WSAGetLastError ();
590
- if (fConnectError || nError != WSAENOTCONN)
587
+ if (fConnectError ||
588
+ (nError != WSAENOTCONN &&
589
+ nError != WSAECONNRESET))
591
590
{
592
591
COH_THROW_ERRNO (nError, " Socket shutdown failed" );
593
592
}
You can’t perform that action at this time.
0 commit comments