Permalink
Browse files

Change to EOL for SIP2 socket communication.

Previously, Koha allowed a \n or \r\n as an EOL determinator.  According
to SIP2 specifications, however, the EOL should be \r.  This patch forces
the code to recognize \r as the EOL when using the raw socket transport
method.
  • Loading branch information...
dlbptfs committed Dec 20, 2011
1 parent 0f930bd commit ba55e58a152ed49f964e45ab1419a691b8b41469
Showing with 1 addition and 0 deletions.
  1. +1 −0 C4/SIP/SIPServer.pm
View
@@ -149,6 +149,7 @@ sub raw_transport {
eval {
local $SIG{ALRM} = sub { die "raw_transport Timed Out!\n"; };
syslog("LOG_DEBUG", "raw_transport: timeout is %d", $service->{timeout});
+ $/ = "\015"; # Internet Record Separator (lax version)
while ($strikes--) {
alarm $service->{timeout};
$input = Sip::read_SIP_packet(*STDIN);

0 comments on commit ba55e58

Please sign in to comment.