From edb21fe40827a4920e39328345f43434c4dc42ee Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Mon, 22 Jan 2018 09:39:52 -0500 Subject: [PATCH] use EOL instead of shutdown to terminate command in rtpengine-ctl closes #447 Change-Id: I0ddb89a9eead715b981958761e5a1a6cf8ad94ba --- utils/rtpengine-ctl | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/utils/rtpengine-ctl b/utils/rtpengine-ctl index db6d77487..cb4059e12 100755 --- a/utils/rtpengine-ctl +++ b/utils/rtpengine-ctl @@ -49,10 +49,7 @@ setsockopt($socket, SOL_SOCKET, SO_SNDTIMEO, pack('L!L!', 3, 0) ) or die $!; setsockopt($socket, SOL_SOCKET, SO_RCVTIMEO, pack('L!L!', 3, 0) ) or die $!; $argumentstring = trim($argumentstring); -my $size = $socket->send($argumentstring); - -# notify server that request has been sent -shutdown($socket, 1); +my $size = $socket->send("$argumentstring\n"); # receive a response of up to 10MB my $response = "";