(ixwebsocket) Fix #252 / regression in 11.0.2 with string comparisons

This commit is contained in:
Benjamin Sergeant
2020-11-16 08:41:08 -08:00
parent 80432edbd0
commit 866670a906
6 changed files with 75 additions and 4 deletions

View File

@ -105,6 +105,24 @@ namespace ix
return ret;
#else
//
// It was reported that on Android poll can fail and return -1 with
// errno == EINTR, which should be a temp error and should typically
// be handled by retrying in a loop.
// Maybe we need to put all syscall / C functions in
// a new IXSysCalls.cpp and wrap them all.
//
// The style from libuv is as such.
//
// int ret = -1;
// do
// {
// ret = ::poll(fds, nfds, timeout);
// }
// while (ret == -1 && errno == EINTR);
// return ret;
//
return ::poll(fds, nfds, timeout);
#endif
}