[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Fix Win32 file handle leak in translate-test.exe?

From: Branko Čibej <brane_at_xbc.nu>
Date: 2003-12-18 13:11:28 CET

Erik Huelsmann wrote:

>>>In the deltification-in-Apache case, it is both the only way and the
>>>documented way to do cleanup after sending a response to a client. I
>>>don't like it there either, but it was the best available option.
>>>That's not the case with file handles.
>I don't get it: you depend on pool cleanup for closing the files yourself.
>This contradicts what you have said until now. The only difference is that you
>introduced a new pool to guarantee the files have been cleaned up at a
>certain moment.
And that is the crucial difference. I never said pool cleanup shouldn't
be used to close file handles -- after all, apr_file_close is nothing
but a wrapper for pool cleanup. But we must control when files are closed.

Brane Čibej   <brane_at_xbc.nu>   http://www.xbc.nu/brane/
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Dec 18 13:14:11 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.