Uh oh!
There was an error while loading. Please reload this page.
Set read buffer to 0 - #20
Conversation
cboden
commented
May 29, 2015
Courtesy of @mbonneau |
cboden
commented
Jun 2, 2015
I'd like to merge this by June 8th unless any valid objections. ping @clue@WyriHaximus |
There was a problem hiding this comment.
All other methods test the Stream in isolation by mocking the environment (unit tests), while this test uses the environment (integration test). Perhaps move this to a separate test file? (Also, there's a missing newline)
clue
commented
Jun 2, 2015
The code looks good to me and I'm all for getting this in! 👍 We're already handling our own buffers, so it makes sense to use unbuffered I/O on a lower level. Given how long it took to trace this (subtle) bug, we should take the time and make sure to not introduce any regressions. In particular:
|
There was a problem hiding this comment.
So far this only affects reading from the stream – how about also disabling the write buffer?
There was a problem hiding this comment.
I'm leaning towards "if it ain't broke don't fix it". The read buffer is fixing a specific problem. I'm all for trying to set the write buffer to 0 in another PR if we can show it increasing performance or fixing a bug.
There was a problem hiding this comment.
if it ain't broke don't fix it
Sounds fair :)
kingcrunch
commented
Aug 28, 2015
@cboden What's missing for a merge? |
WyriHaximus
commented
Aug 28, 2015
LGTM 👍 |
mbonneau
commented
Aug 28, 2015
+1 |
1 similar comment
davidwdan
commented
Aug 28, 2015
👍 |
clue
commented
Sep 9, 2015
We have yet to spot any regressions, so I see no point in holding this off any longer. Let's get this in 👍 |
clue
commented
Sep 18, 2015
Note that this PR introduced an incompatibility with HHVM which is being addressed in #28. |
refs reactphp/event-loop#26