mirror of
https://github.com/zeromq/libzmq.git
synced 2025-01-15 02:07:59 +08:00
commit
837cc2cd75
2
NEWS
2
NEWS
@ -13,6 +13,8 @@
|
||||
|
||||
* Fixed #1362 - SUB socket sometimes fails to resubscribe properly.
|
||||
|
||||
* Fixed #1377, #1144 - failed with WSANOTINITIALISED in some cases.
|
||||
|
||||
|
||||
0MQ version 4.1.0 rc1, released on 2014/10/14
|
||||
=============================================
|
||||
|
@ -132,11 +132,14 @@ zmq::signaler_t::~signaler_t ()
|
||||
const struct linger so_linger = { 1, 0 };
|
||||
int rc = setsockopt (w, SOL_SOCKET, SO_LINGER,
|
||||
(const char *) &so_linger, sizeof so_linger);
|
||||
wsa_assert (rc != SOCKET_ERROR);
|
||||
rc = closesocket (w);
|
||||
wsa_assert (rc != SOCKET_ERROR);
|
||||
rc = closesocket (r);
|
||||
wsa_assert (rc != SOCKET_ERROR);
|
||||
// Only check shutdown if WSASTARTUP was previously done
|
||||
if (rc == 0 || WSAGetLastError () != WSANOTINITIALISED) {
|
||||
wsa_assert (rc != SOCKET_ERROR);
|
||||
rc = closesocket (w);
|
||||
wsa_assert (rc != SOCKET_ERROR);
|
||||
rc = closesocket (r);
|
||||
wsa_assert (rc != SOCKET_ERROR);
|
||||
}
|
||||
#else
|
||||
int rc = close_wait_ms (w);
|
||||
errno_assert (rc == 0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user