More SNtp debug 4

This commit is contained in:
Sergey Lyubka 2022-05-27 20:48:19 +01:00
parent be8b01e289
commit b9d1d4a94f
2 changed files with 2 additions and 1 deletions

View File

@ -11,7 +11,7 @@ jobs:
sudo tcpdump -nn -i any port 123 or port 53 -w sntp.cap &
sleep 1
- name: test
run: make clean test IPV6=0 SSL= OPTS= V=4
run: make clean test IPV6=0 SSL= OPTS= V=4 TFLAGS=-DMG_ENABLE_POLL=1
- name: Upload capture
if: always()
run: |

View File

@ -4413,6 +4413,7 @@ static void mg_iotest(struct mg_mgr *mgr, int ms) {
}
}
MG_DEBUG(("n=%d ms=%d", n, ms));
if (poll(fds, n, ms) < 0) {
MG_ERROR(("poll failed, errno: %d", MG_SOCK_ERRNO));
} else {