Skip to content

Commit

Permalink
Merge pull request #3326 from hgourvest/master
Browse files Browse the repository at this point in the history
Switching or desactivate wifi can crash Android application
  • Loading branch information
bluca authored Dec 8, 2018
2 parents aaaec89 + a6b5c75 commit f025129
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
13 changes: 13 additions & 0 deletions RELICENSE/hgourvest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Permission to Relicense under MPLv2 or any other OSI approved license chosen by the current ZeroMQ BDFL
This is a statement by Henri Gourvest that grants permission to
relicense its copyrights in the libzmq C++ library (ZeroMQ) under the
Mozilla Public License v2 (MPLv2) or any other Open Source Initiative
approved license chosen by the current ZeroMQ BDFL (Benevolent
Dictator for Life).
A portion of the commits made by the Github handle "hgourvest", with
commit author "Henri Gourvest <[email protected]>", are
copyright of Henri Gourvest. This document hereby grants the libzmq
project team to relicense libzmq, including all past, present and
future contributions of the author listed above.
Henri Gourvest
2018/12/8
7 changes: 6 additions & 1 deletion src/tcp_listener.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -299,10 +299,15 @@ zmq::fd_t zmq::tcp_listener_t::accept ()
#endif

if (sock == retired_fd) {
#ifdef ZMQ_HAVE_WINDOWS
#if defined ZMQ_HAVE_WINDOWS
const int last_error = WSAGetLastError ();
wsa_assert (last_error == WSAEWOULDBLOCK || last_error == WSAECONNRESET
|| last_error == WSAEMFILE || last_error == WSAENOBUFS);
#elif defined ZMQ_HAVE_ANDROID
errno_assert (errno == EAGAIN || errno == EWOULDBLOCK || errno == EINTR
|| errno == ECONNABORTED || errno == EPROTO
|| errno == ENOBUFS || errno == ENOMEM || errno == EMFILE
|| errno == ENFILE || errno == EINVAL);
#else
errno_assert (errno == EAGAIN || errno == EWOULDBLOCK || errno == EINTR
|| errno == ECONNABORTED || errno == EPROTO
Expand Down

0 comments on commit f025129

Please sign in to comment.