apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Stoddard" <b...@wstoddard.com>
Subject RE: [PATCH] Support APR_APPEND (O_APPEND) with apr_file_write on Windows
Date Fri, 25 Oct 2002 15:20:44 GMT
Speculation... moving the file pointer (with SetFilePointer()) is a "bad
thing" when done inside a locked region.


> The only problem with this patch is that it occasionally causes the
> WriteFile to block indefinitely and all the other worker threads block on
> apr_file_lock waiting for the file lock.   I can send several thousand
> requests through the server before it hangs.  I don't see
> anything obviously
> wrong here or in apr_file_lock|unlock. Obviously I will not commit this
> until we figure out and fix what is causing the WriteFile block.
> I generally see the hang writing to the access log. I did see a
> hang writing
> to the error log at startup once.
> Bill

View raw message