FastCGI Developer's Kit README
------------------------------
- $Id: README,v 1.12 2001/12/07 02:28:14 robs Exp $
+ $Id: README,v 1.13 2001/12/12 14:12:27 robs Exp $
Copyright (c) 1996 Open Market, Inc.
See the file "LICENSE.TERMS" for information on usage and redistribution
of this file, and for a DISCLAIMER OF ALL WARRANTIES.
2.2.3
-----
+ *) Fix a bug a that caused the lib to crash under certain circumstances
+ when an error occured on a read
+
*) Test for iostreams that support a streambuf assigment operator
*) (WIN32) Fixed initialization of the accept mutex when OpenSocket() was used.
*
*/
#ifndef lint
-static const char rcsid[] = "$Id: fcgiapp.c,v 1.32 2001/11/21 21:03:35 robs Exp $";
+static const char rcsid[] = "$Id: fcgiapp.c,v 1.33 2001/12/12 14:12:26 robs Exp $";
#endif /* not lint */
#include <assert.h>
if(stream->isClosed || !stream->isReader)
return EOF;
stream->fillBuffProc(stream);
+ if (stream->isClosed)
+ return EOF;
stream->stopUnget = stream->rdNext;
if(stream->rdNext != stream->stop)
return *stream->rdNext++;
if(bytesMoved == n)
return bytesMoved;
str += m;
- }
+ }
if(stream->isClosed || !stream->isReader)
return bytesMoved;
stream->fillBuffProc(stream);
+ if (stream->isClosed)
+ return bytesMoved;
+
stream->stopUnget = stream->rdNext;
}
}