forked from Lainports/opnsense-ports
Taken from: https://github.com/freebsd/freebsd-ports.git Commit id: 5070672073b68be364139bc6b3a89100bd17d331
15 lines
461 B
C++
15 lines
461 B
C++
--- cpp.orig/src/Ice/Network.cpp 2013-03-11 15:19:46.000000000 +0000
|
|
+++ cpp/src/Ice/Network.cpp 2013-05-19 22:55:40.257195813 +0000
|
|
@@ -936,7 +936,11 @@
|
|
WSASetLastError(error);
|
|
#else
|
|
int error = errno;
|
|
- if(close(fd) == SOCKET_ERROR)
|
|
+ if(close(fd) == SOCKET_ERROR
|
|
+# if defined(__FreeBSD__)
|
|
+ && getSocketErrno() != ECONNRESET
|
|
+# endif
|
|
+ )
|
|
{
|
|
SocketException ex(__FILE__, __LINE__);
|
|
ex.error = getSocketErrno();
|