Skip to content

Ignore empty writes to Buffer #51

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 19, 2016
Merged

Conversation

clue
Copy link
Member

@clue clue commented Aug 19, 2016

Empty writes should not wait for writable event from the event loop and then literally try to do nothing.

Without this change, it would otherwise wait for the Buffer to return from a superfluous fwrite($resource, '') call.

@clue clue added this to the v0.4.4 milestone Aug 19, 2016
@cboden
Copy link
Member

cboden commented Aug 19, 2016

LGTM

On Aug 19, 2016, 9:54 AM -0400, Christian Lück notifications@github.com, wrote:

Empty writes should not wait for writable event from the event loop and then literally try to do nothing.

Without this change, it would otherwise wait for the Buffer to return from a superfluous fwrite($resource, '') call.

You can view, comment on, or merge this pull request online at:

#51

Commit Summary
Ignore empty writes to Buffer

File Changes
M src/Buffer.php (https://github.com/reactphp/stream/pull/51/files#diff-0) (2)
M tests/BufferTest.php (https://github.com/reactphp/stream/pull/51/files#diff-1) (30)

Patch Links:
https://github.com/reactphp/stream/pull/51.patch
https://github.com/reactphp/stream/pull/51.diff


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub (#51), or mute the thread (https://github.com/notifications/unsubscribe-auth/AAls3i_WYzt_FSqZ4Wf6hABsgUwutGnKks5qhbV3gaJpZM4JofsK).

@WyriHaximus
Copy link
Member

LGTM :shipit:

@clue clue merged commit 7782ea0 into reactphp:master Aug 19, 2016
@clue clue deleted the empty-write branch August 19, 2016 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants