Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix recv with no length specified.
  • Loading branch information
jnthn committed Feb 16, 2014
1 parent f35ca0b commit d9c8083
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/core/IO/Socket.pm
Expand Up @@ -70,10 +70,12 @@ my role IO::Socket does IO {
#?endif
#?if moar
if $bin {
nqp::readfh($!PIO, nqp::decont(buf8.new), $chars);
nqp::readfh($!PIO, nqp::decont(buf8.new),
$chars == $Inf ?? 1048576 !! $chars.Int);
}
else {
nqp::p6box_s(nqp::readcharsfh($!PIO, $chars));
nqp::p6box_s(nqp::readcharsfh($!PIO,
$chars == $Inf ?? 1048576 !! $chars.Int));
}
#?endif
}
Expand Down

0 comments on commit d9c8083

Please sign in to comment.