Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make read have wait semantics, like elsewhere.
Unbusts the last failing sockets tests on Moar.
  • Loading branch information
jnthn committed Feb 16, 2014
1 parent 7f0cc2b commit 385ae4e
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/core/IO/Socket.pm
Expand Up @@ -93,7 +93,6 @@ my role IO::Socket does IO {
} while nqp::chars($res) < $bufsize && nqp::chars($read);
nqp::encode(nqp::unbox_s($res), 'binary', buf8.new);
#?endif
#?if jvm
my $res = buf8.new();
my $buf;
repeat {
Expand All @@ -102,10 +101,6 @@ my role IO::Socket does IO {
$res ~= $buf;
} while $res.elems < $bufsize && $buf.elems;
$res;
#?endif
#?if moar
nqp::readfh($!PIO, nqp::decont(buf8.new), $bufsize);
#?endif
}

method poll(Int $bitmask, $seconds) {
Expand Down

0 comments on commit 385ae4e

Please sign in to comment.