mirror of
https://github.com/danog/ext-uv.git
synced 2024-11-30 04:29:01 +01:00
fix broken test
This commit is contained in:
parent
5e0cd202cb
commit
1e8cf368e8
@ -11,6 +11,10 @@ uv_listen($a, 8192, function($stream) {
|
||||
$pipe = uv_pipe_init(uv_default_loop(), 0);
|
||||
uv_accept($stream, $pipe);
|
||||
uv_read_start($pipe,function($pipe, $nread, $buffer) use ($stream) {
|
||||
if ($nread === \UV::EOF) {
|
||||
return;
|
||||
}
|
||||
|
||||
echo $buffer;
|
||||
uv_read_stop($pipe);
|
||||
uv_close($stream, function() {
|
||||
|
Loading…
Reference in New Issue
Block a user