Skip to content

Commit 44b9b78

Browse files
committed
TcpTransport: Workaround to fix Spark shutdown.
Signed-off-by: Pascal Spörri <[email protected]>
1 parent bc343ff commit 44b9b78

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libgeds/TcpTransport.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ void TcpTransport::tcpTxThread(unsigned int id) {
311311
}
312312
epoll_wfd[id] = poll_fd;
313313
do {
314-
int cnt = ::epoll_wait(poll_fd, events, EPOLL_MAXEVENTS, -1);
314+
int cnt = ::epoll_wait(poll_fd, events, EPOLL_MAXEVENTS, 500);
315315

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

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

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

0 commit comments

Comments
 (0)