From f8e3c4086570b243c7638a5f6e57910f80a41477 Mon Sep 17 00:00:00 2001 From: Moritz Pflanzer Date: Thu, 5 Apr 2018 12:15:08 +0200 Subject: [PATCH] Revert "Topic subscription scalability fix (#1281)" This reverts commit a0f4cc3c82cb2f1a7187448af6c1b5f414088def. --- clients/roscpp/src/libros/io.cpp | 6 ------ clients/roscpp/src/libros/poll_set.cpp | 1 - 2 files changed, 7 deletions(-) diff --git a/clients/roscpp/src/libros/io.cpp b/clients/roscpp/src/libros/io.cpp index 66c4a9993a..bf0ca1bcb7 100644 --- a/clients/roscpp/src/libros/io.cpp +++ b/clients/roscpp/src/libros/io.cpp @@ -328,12 +328,6 @@ pollfd_vector_ptr poll_sockets(int epfd, socket_pollfd *fds, nfds_t nfds, int ti #else UNUSED(epfd); pollfd_vector_ptr ofds(new std::vector); - // Clear the `revents` fields - for (nfds_t i = 0; i < nfds; i++) - { - fds[i].revents = 0; - } - // use an existing poll implementation int result = poll(fds, nfds, timeout); if ( result < 0 ) diff --git a/clients/roscpp/src/libros/poll_set.cpp b/clients/roscpp/src/libros/poll_set.cpp index 7ae227d48d..acc6a95403 100644 --- a/clients/roscpp/src/libros/poll_set.cpp +++ b/clients/roscpp/src/libros/poll_set.cpp @@ -279,7 +279,6 @@ void PollSet::createNativePollset() pfd.events = info.events_; pfd.revents = 0; } - sockets_changed_ = false; } void PollSet::onLocalPipeEvents(int events)