[Twisted-Python] implementing an adbapi connectionpool idle timer
p.mayers at imperial.ac.uk
Sun Jun 10 08:32:41 EDT 2007
> Be prepared to spend a lot of time in the test suite. adbapi's test
> isn't very unit-like and relies on being able to connect to a real SQL
> in most cases.
>> Also - looking at the ConnectionPool/Transaction code, it appears a
>> ConnectionPool's "connections" dictionary is modified from multiple
>> threads without locking. Is this safe?
> Python builtins are threadsafe. So, maybe. ;) As usual, it is always
Ah. I was under the impression they were not, hence the disconnect.
More information about the Twisted-Python