Bugzilla – Attachment 114373 Details for
Bug 26897
Blank SIP message closes SIP server connection
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26897: Don't close SIP connection when empty message is received
Bug-26897-Dont-close-SIP-connection-when-empty-mes.patch (text/plain), 847 bytes, created by
Jonathan Druart
on 2020-12-14 09:56:47 UTC
(
hide
)
Description:
Bug 26897: Don't close SIP connection when empty message is received
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-12-14 09:56:47 UTC
Size:
847 bytes
patch
obsolete
>From 30e69383c2a41ebc2b5e781a024b41ce55b9dd5d Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 14 Dec 2020 10:55:54 +0100 >Subject: [PATCH] Bug 26897: Don't close SIP connection when empty message is > received > >--- > C4/SIP/SIPServer.pm | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > >diff --git a/C4/SIP/SIPServer.pm b/C4/SIP/SIPServer.pm >index 8d5be71624..1bcd80cd8e 100644 >--- a/C4/SIP/SIPServer.pm >+++ b/C4/SIP/SIPServer.pm >@@ -308,9 +308,9 @@ sub sip_protocol_loop { > my $previous_alarm = alarm($timeout); > > while ( my $inputbuf = read_request() ) { >- if ( !defined $inputbuf ) { >- return; #EOF >- } >+ >+ next unless defined $inputbuf; >+ > alarm($timeout); > > unless ($inputbuf) { >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 26897
: 114373