Skip to content

Commit

Permalink
TcpTransport: Workaround to fix Spark shutdown.
Browse files Browse the repository at this point in the history
Signed-off-by: Pascal Spörri <[email protected]>
  • Loading branch information
pspoerri committed Jun 12, 2023
1 parent bc343ff commit 44b9b78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libgeds/TcpTransport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ void TcpTransport::tcpTxThread(unsigned int id) {
}
epoll_wfd[id] = poll_fd;
do {
int cnt = ::epoll_wait(poll_fd, events, EPOLL_MAXEVENTS, -1);
int cnt = ::epoll_wait(poll_fd, events, EPOLL_MAXEVENTS, 500);

for (int i = 0; i < cnt; i++) {
struct epoll_event *ev = &events[i];
Expand Down Expand Up @@ -657,7 +657,7 @@ void TcpTransport::tcpRxThread(unsigned int id) {
epoll_rfd[id] = poll_fd;

do {
int cnt = ::epoll_wait(poll_fd, events, EPOLL_MAXEVENTS, -1);
int cnt = ::epoll_wait(poll_fd, events, EPOLL_MAXEVENTS, 500);

for (int i = 0; i < cnt; i++) {
struct epoll_event *ev = &events[i];
Expand Down

0 comments on commit 44b9b78

Please sign in to comment.