diff options
author | Philip Kaufmann <phil.kaufmann@t-online.de> | 2014-06-16 15:55:39 +0200 |
---|---|---|
committer | Philip Kaufmann <phil.kaufmann@t-online.de> | 2014-08-08 07:40:45 +0200 |
commit | efd6b87811351cde592ac48247190e682ad02aea (patch) | |
tree | 0e362f3f4b8cc1bd13764a05433ee84a0bbe4b49 /src/netbase.cpp | |
parent | 8833acc4c979877993f87c8fdc8a6d14cd072ba2 (diff) |
small net cleanup
- add comment for disabling sigpipe
- add closing comment in compat.h
- remove redundant check in net.h
Diffstat (limited to 'src/netbase.cpp')
-rw-r--r-- | src/netbase.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/netbase.cpp b/src/netbase.cpp index af6d11f0e2..1031e7e38a 100644 --- a/src/netbase.cpp +++ b/src/netbase.cpp @@ -334,6 +334,7 @@ bool static ConnectSocketDirectly(const CService &addrConnect, SOCKET& hSocketRe #ifdef SO_NOSIGPIPE int set = 1; + // Different way of disabling SIGPIPE on BSD setsockopt(hSocket, SOL_SOCKET, SO_NOSIGPIPE, (void*)&set, sizeof(int)); #endif |