apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Covener <cove...@gmail.com>
Subject buffered files read after apr_file_close()'ed
Date Mon, 02 Dec 2013 00:29:37 GMT
I am looking at a httpd bug that causes a hang on windows but succeeds on unix.

It seems that (short) files are opened w/ buffering, read,
apr_file_closed, and read again [succesfully on unix]

On Unix, they sare satisfied out of the buffer.  file->fileset is -1.
On Windows, the destroyed apr_thread_mutex causes a hang.

Is reading from the closed file on the extreme bogus end of the
spectrum as I suspect and just getting lucky on the unix case?

Should they blow up in 2.0 during a read if they've been closed?

Eric Covener

View raw message