fix Client.pm recv len

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4370 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2007-02-23 18:02:50 +00:00
parent 6b46843c57
commit 10b1187110
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ sub readhash($;$) {
if ($h->{'content-length'}) {
while(length($h->{body}) < $h->{'content-length'}) {
my $buf;
recv $s, $buf, $h->{'content-length'}, 0;
recv $s, $buf, $h->{'content-length'} - length($h->{body}), 0;
if (!$buf) {
$h->{socketerror} = "yes";
return $h;