Skip to content
Snippets Groups Projects
Commit f822a8f5 authored by Marek Vavrusa's avatar Marek Vavrusa
Browse files

tcp: count in poll errors

parent 068724f4
No related branches found
No related tags found
No related merge requests found
......@@ -343,6 +343,7 @@ static int tcp_wait_for_events(tcp_context_t *tcp)
}
if (set->pfd[i].revents & (POLLERR|POLLHUP|POLLNVAL)) {
--nfds; /* One less active event. */
fdset_remove(set, i);
close(fd);
continue; /* Stay on the same index. */
......
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