donb
committed
on 20 May 06
Changed db pool config to keep handles open forever rather than a billion
seconds. A billion seconds from mid-May 2006 is 2038, so folks we… Show more
Changed db pool config to keep handles open forever rather than a billion

seconds.  A billion seconds from mid-May 2006 is 2038, so folks were

running into the Unix Y2.038K bug a few decades early.  That billion number

was originally picked because 0 (keep open forever) didn't work in earlier

versions of AOLserver.  Early versions of the Oracle client interface on

Linux used to hang when the handle was closed, thus the need to keep them

open "forever".  Turns out it's a good idea anyway if the db library and

the appropriate db driver for AOLserver don't leak memory.  Both PG and

Oracle have been well-behaved in this respect, so we just keep the db handles

open indefinitely by default.

Show less