Skip to content

Commit

Permalink
Added a check for EAGAIN in inp filter
Browse files Browse the repository at this point in the history
  • Loading branch information
grisha committed Oct 9, 2003
1 parent cba38d7 commit 0792baf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/filterobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
*
* filterobject.c
*
* $Id: filterobject.c,v 1.24 2003/09/22 19:36:37 grisha Exp $
* $Id: filterobject.c,v 1.25 2003/10/09 03:18:45 grisha Exp $
*
* See accompanying documentation and source code comments
* for details.
Expand Down Expand Up @@ -219,7 +219,7 @@ static PyObject *_filter_read(filterobject *self, PyObject *args, int readline)
APR_BLOCK_READ, self->readbytes);
Py_END_ALLOW_THREADS;

if (! APR_STATUS_IS_SUCCESS(self->rc)) {
if (!APR_STATUS_IS_EAGAIN(self->rc) && !APR_STATUS_IS_SUCCESS(self->rc)) {
PyErr_SetObject(PyExc_IOError,
PyString_FromString("Input filter read error"));
return NULL;
Expand Down

0 comments on commit 0792baf

Please sign in to comment.