Oleg Kalnichevski wrote:
The connection will eventually get closed by the GC if it is no
longer referenced. However, the process of garbage collection is
often non deterministic, so lots of idle connections can pile up
before they get GCed

I consider this abuse of the GC. GC is for memory management. It does a poor job as a general resource manager as finalize makes no guarantees about the time when it will be invoked (if ever).


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to