[Koha-bugs] [Bug 13807] SIPServer Input loop not checking for closed connections reliably

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jun 24 19:43:46 CEST 2016


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13807

--- Comment #4 from Kyle M Hall <kyle at bywatersolutions.com> ---
Created attachment 52854
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=52854&action=edit
Bug 13807 Rework main input loop in SIPServer

Debugging various problems in SIPServer and control of it, found it
could loop on unread buffers (e.g. the LF of a CRLF if it was only
expecting CR) making it unresponsive to signals.
Reworked the input loop with an eye to removing unnecessary whiles
and replacing the while(1) by a while( connection valid)
Enhanced the timeout code by wapping in an eval.
Moved the logic from SIP_read_packet into the server itself
Hopefully this makes the already baroque code easier to navigate
and it did seem the server was the logical place for this
Removed no longer iused SIP_read_packet from Sip.pm

Signed-off-by: Srdjan <srdjan at catalyst.net.nz>

Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list