Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
mention why we only check for errors when reading
  • Loading branch information
kraih committed Feb 7, 2015
1 parent 8f98c9c commit 041990e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Changes
@@ -1,5 +1,5 @@

5.78 2015-02-07
5.78 2015-02-08
- Improved design of built-in templates.
- Fixed warnings in Mojo::URL.

Expand Down
1 change: 1 addition & 0 deletions lib/Mojo/IOLoop/Stream.pm
Expand Up @@ -112,6 +112,7 @@ sub _read {
sub _write {
my $self = shift;

# Handle errors when reading, to avoid timing problems
my $handle = $self->{handle};
if (length $self->{buffer}) {
return unless defined(my $written = $handle->syswrite($self->{buffer}));
Expand Down

0 comments on commit 041990e

Please sign in to comment.