More SNtp debug 7

This commit is contained in:
Sergey Lyubka committed 2022-05-27 22:08:05 +01:00
1 parent 9029593691
commit 53bca4efab
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -4427,10 +4427,10 @@ static void mg_iotest(struct mg_mgr *mgr, int ms) {
} else {
c->is_readable = (unsigned) (fds[n].revents & POLLIN ? 1 : 0);
c->is_writable = (unsigned) (fds[n].revents & POLLOUT ? 1 : 0);
fds[n].revents = 0;
if (mg_tls_pending(c) > 0) c->is_readable = 1;
MG_DEBUG((" fd=%d events=%d revents=%d", fds[n].fd, fds[n].events,
fds[n].revents));
fds[n].revents = 0;
n++;
}
}
+1 -1
View File
@@ -508,10 +508,10 @@ static void mg_iotest(struct mg_mgr *mgr, int ms) {
} else {
c->is_readable = (unsigned) (fds[n].revents & POLLIN ? 1 : 0);
c->is_writable = (unsigned) (fds[n].revents & POLLOUT ? 1 : 0);
fds[n].revents = 0;
if (mg_tls_pending(c) > 0) c->is_readable = 1;
MG_DEBUG((" fd=%d events=%d revents=%d", fds[n].fd, fds[n].events,
fds[n].revents));
fds[n].revents = 0;
n++;
}
}