Skip to content

Commit

Permalink
Server->Client messages will be non-blocking thanks to stream_copy_to…
Browse files Browse the repository at this point in the history
…_stream()
  • Loading branch information
mpyw committed Aug 16, 2016
1 parent cfd4491 commit 39ffc1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ProxyProcess.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,6 @@ private function pipe($client, $server)
}
}
fwrite($server, implode($lines) . $body);
fwrite($client, stream_get_contents($server));
stream_copy_to_stream($server, $client);
}
}

0 comments on commit 39ffc1a

Please sign in to comment.