David Fraser
davidf at sjsoft.com
Thu Mar 11 17:37:23 EST 2004
David Fraser wrote: > David Fraser wrote: > >> >> * Testing req.sendfile() >> F >> [Fri Mar 05 11:27:38 2004] [error] [client 127.0.0.1] PythonHandler >> tests::req_sendfile: Traceback (most recent call last): >> [Fri Mar 05 11:27:38 2004] [error] [client 127.0.0.1] PythonHandler >> tests::req_sendfile: File "\PURELIB\mod_python\apache.py", line 299, >> in HandlerDispatch >> [Fri Mar 05 11:27:38 2004] [error] [client 127.0.0.1] PythonHandler >> tests::req_sendfile: File >> "C:/Apache/mod_python-3.1.3/test\htdocs\tests.py", line 680, in >> req_sendfile >> os.remove(fname) > > > Hmmm ... it seems that req.sendfile opens the file using apr_file_open > and then uses ap_send_fd to send it. Does this close the file > correctly? Doesn't seem like it from the Apache source... > I suspect that's why the os.remove fails... > OK, It seems I was wrong about this. Adding a apr_file_close doesn't make a difference. I wonder if Windows is taking a while to close the file... Anybody else tried this on Windows? David
|