@rajneeshksoni commented on this pull request.
> + while((poll(&fds[j], 1, 0) == 1) && (fds[j].revents & POLLIN)) {
+ recv(fds[j].fd, recv_buf, sizeof(recv_buf), 0);
+ fds[j].revents = 0;
+ }
I want to flush out any pending data from the socket, which is present before
sending the ping request. Say some delayed response for some previous command.
This avoid "stale" response to be considered the response of the "ping".
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/4729#discussion_r3231415832
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/4729/review/[email protected]>_______________________________________________
Kamailio - Development Mailing List -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the
sender!