MINOR: quic: Add a debug counter for sendto() errors
As we do not have any task to be wake up by the poller after sendto() error,
we add an sendto() error counter to the quic_conn struct.
Dump its values from qc_send_ppkts().
diff --git a/src/quic_sock.c b/src/quic_sock.c
index a0f8129..2cc5a7f 100644
--- a/src/quic_sock.c
+++ b/src/quic_sock.c
@@ -341,11 +341,11 @@
}
else if (ret == 0 || errno == EAGAIN || errno == EWOULDBLOCK || errno == ENOTCONN || errno == EINPROGRESS) {
/* TODO must be handle properly. It is justified for UDP ? */
- ABORT_NOW();
+ qc->sendto_err++;
}
else if (errno != EINTR) {
/* TODO must be handle properly. It is justified for UDP ? */
- ABORT_NOW();
+ qc->sendto_err++;
}
}