durusmail: durus-users: FileStorage bug?
FileStorage bug?
2004-10-15
2004-10-15
2004-10-15
2004-10-15
2004-10-15
2004-10-15
2004-10-15
2004-10-15
2004-10-15
FileStorage bug?
Austine Jane
2004-10-15
Hello

First of all, thanks a lot for this wonderful package!

I am using Durus 1.2 on python 2.3 and windows 2000. I seem to have some
problem with FileStorage. Since there is no __del__ in FileStorage, it
depends on python's ability to "del"ing all the remaining objects when it's
closing the vm -- it doesn't explictly call "close" method in FileStorage.
However, when running durus with quixote on top of twisted server and I send
SIGINT(via ctrl-c), there seems to be a problem. Restarting and terminating
the application with SIGINT a couple of times, I encounter short read
IOError.

At first, I though Durus was too fragile to use in a serious environment. To
solve the problem, I used "atexit" in order to call the close method on
connection.storage explicitly just before the shut down. Now I don't see
short read error any more (so far).

What is the expected way of using(and closing) Connection and FileStorage
(with twisted)?

Jane

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.com/


reply