Skip to content
Snippets Groups Projects
Commit 47574517 authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Remove poll error handling

parent f405bc47
No related branches found
No related tags found
No related merge requests found
...@@ -306,7 +306,7 @@ socket_t Universe::_setDescriptors() { ...@@ -306,7 +306,7 @@ socket_t Universe::_setDescriptors() {
#ifdef WIN32 #ifdef WIN32
fdentry.events = POLLIN; fdentry.events = POLLIN;
#else #else
fdentry.events = POLLIN | POLLERR; fdentry.events = POLLIN; // | POLLERR;
#endif #endif
fdentry.fd = sock; fdentry.fd = sock;
fdentry.revents = 0; fdentry.revents = 0;
...@@ -330,7 +330,7 @@ socket_t Universe::_setDescriptors() { ...@@ -330,7 +330,7 @@ socket_t Universe::_setDescriptors() {
#ifdef WIN32 #ifdef WIN32
fdentry.events = POLLIN; fdentry.events = POLLIN;
#else #else
fdentry.events = POLLIN | POLLERR; fdentry.events = POLLIN; // | POLLERR;
#endif #endif
fdentry.fd = sock; fdentry.fd = sock;
fdentry.revents = 0; fdentry.revents = 0;
...@@ -569,14 +569,14 @@ void Universe::_run() { ...@@ -569,14 +569,14 @@ void Universe::_run() {
const auto &fdstruct = impl_->pollfds[impl_->idMap[sock]]; const auto &fdstruct = impl_->pollfds[impl_->idMap[sock]];
if (fdstruct.revents & POLLERR) { /*if (fdstruct.revents & POLLERR) {
if (s->socketError()) { if (s->socketError()) {
//lk.unlock(); //lk.unlock();
s->close(); s->close();
//lk.lock(); //lk.lock();
continue; // No point in reading data... continue; // No point in reading data...
} }
} }*/
//If message received from this client then deal with it //If message received from this client then deal with it
if (fdstruct.revents & POLLIN) { if (fdstruct.revents & POLLIN) {
//lk.unlock(); //lk.unlock();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment