Browse Source

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
commit
edb21fe408
1 changed files with 1 additions and 4 deletions
  1. +1
    -4
      utils/rtpengine-ctl

+ 1
- 4
utils/rtpengine-ctl View File

@ -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 $!; setsockopt($socket, SOL_SOCKET, SO_RCVTIMEO, pack('L!L!', 3, 0) ) or die $!;
$argumentstring = trim($argumentstring); $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 # receive a response of up to 10MB
my $response = ""; my $response = "";


Loading…
Cancel
Save