use EOL instead of shutdown to terminate command in rtpengine-ctl

closes #447

Change-Id: I0ddb89a9eead715b981958761e5a1a6cf8ad94ba
changes/88/18488/2
Richard Fuchs 8 years ago
parent 321fb5e1ca
commit edb21fe408

@ -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 = "";

Loading…
Cancel
Save