Skip to content

Commit

Permalink
Part 2 of the necessary read_with_timeout() fixes. Catch the
Browse files Browse the repository at this point in the history
  condition where our broken pipe occurs durring the deferred
  i/o completion phase.

git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@388282 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
wrowe committed Mar 23, 2006
1 parent c49a6a3 commit d56099a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion file_io/win32/readwrite.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ static apr_status_t read_with_timeout(apr_file_t *file, void *buf, apr_size_t le
}
}
}
else if (rv == APR_FROM_OS_ERROR(ERROR_BROKEN_PIPE)) {
if (rv == APR_FROM_OS_ERROR(ERROR_BROKEN_PIPE)) {
/* Assume ERROR_BROKEN_PIPE signals an EOF reading from a pipe */
rv = APR_EOF;
}
Expand Down

0 comments on commit d56099a

Please sign in to comment.