[sr-dev] git:kamailio_3.0: io_wait: kqueue: use the entire array during too many errors fallback

Andrei Pelinescu-Onciul andrei at iptel.org
Thu Aug 19 16:17:07 CEST 2010


Module: sip-router
Branch: kamailio_3.0
Commit: aed168981e6dae1333afcdaff5976b44c4fac738
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=aed168981e6dae1333afcdaff5976b44c4fac738

Author: Andrei Pelinescu-Onciul <andrei at iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei at iptel.org>
Date:   Thu Jul  8 15:18:52 2010 +0200

io_wait: kqueue: use the entire array during too many errors fallback

Minor fix/optimization: if there are too many errors in the
changelist and the kevent() call has to be retried, use the entire
array (don't rely on the current watched fd number which will be
smaller then the array real size, since commit 996826).

(only kqueue using systems are affected by this fix: *bsd and
 darwin)
 (cherry picked from commit a9cdfc2938ca73d6ba40f5896c6a8930c2e73f85)

---

 io_wait.h |  105 +++++++++++++++++++++++++++++++------------------------------
 1 files changed, 53 insertions(+), 52 deletions(-)

Diff:   http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commitdiff;h=aed168981e6dae1333afcdaff5976b44c4fac738



More information about the sr-dev mailing list