| Summary: | SIP2 server doesn't handle broken connections which then kills SIP2 server | ||
|---|---|---|---|
| Product: | Koha | Reporter: | Joonas Kylmälä <joonas.kylmala> |
| Component: | SIP2 | Assignee: | Bugs List <koha-bugs> |
| Status: | CLOSED INVALID | QA Contact: | Testopia <testopia> |
| Severity: | normal | ||
| Priority: | P5 - low | CC: | amar, colin.campbell, dcook, jonathan.druart, kyle, martin.renvoize, nick, nugged |
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | All | ||
| GIT URL: | Initiative type: | --- | |
| Sponsorship status: | --- | Comma delimited list of Sponsors: | |
| Crowdfunding goal: | 0 | Patch complexity: | --- |
| Documentation contact: | Documentation submission: | ||
| Text to go in the release notes: | Version(s) released in: | ||
| Circulation function: | |||
|
Description
Joonas Kylmälä
2020-12-04 10:52:32 UTC
Would the following change work?
diff --git a/C4/SIP/SIPServer.pm b/C4/SIP/SIPServer.pm
index 8d5be71624..36d7606b0b 100644
--- a/C4/SIP/SIPServer.pm
+++ b/C4/SIP/SIPServer.pm
@@ -28,6 +28,8 @@ use base qw(Net::Server::PreFork);
use constant LOG_SIP => "local6"; # Local alias for the logging facility
+$SIG{PIPE} = "IGNORE";
+
#
# Main # not really, since package SIPServer
#
Joonas, by any chances, did you try what I suggested in the previous comment? (In reply to Jonathan Druart from comment #2) > Joonas, by any chances, did you try what I suggested in the previous comment? I have not tried it but it should fix the problem at least cosmetically. I need to investigate what side effects it will have first if any, for example whether it will cause a process to hang and when there is a max sip server processes defined will we run out of those after a period of time. This hasn't happened in a long time and I don't know if it happens anymore with latest master. I think this could be closed. |