Tuesday, January 21, 2014

Odd issue with 1.6.1 (as opposed to 1.5.5)

-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org

iQEcBAEBCgAGBQJS3pEyAAoJELMiOgVOfjkQrowIALR0sRjiUkwNSutRZTv6fIUv
BHT9Ge2O/BproD2cK5IiLT0pv1K7/Cv/LIC2wVrdgFqIjFHXuqwlr3qaCz1ut4s7
BMyNMhnO+xf0QW/pW1ghYKCjo59s8ZWavxvc4N7t72D/LZJPpiP6OgsjEndhy7Qb
k5BNjDT7cjFElTGQ7Qz1KxoqHSAtNEdwJs5VZmahYQrrNJCXhlgIvLd9Ql7Dhmo8
xRDcCk37qvuNCUDyfaMfhcpqFvERBEkIQlC8Nh0b10XXrP23wdu2MGKtIxxHEMm4
mQJu7xZa0dDReTB5j+iplCFBqIzo5A20qmdOz7wWl7e833LNkhriL/69984LZFc=
=iBy8
-----END PGP SIGNATURE-----
Hi

I am wondering if there is something about CONN_MAX_AGE in 1.6.1 and accessing objects from a script (as opposed to as part of an HTTP request).

I have set CONN_MAX_AGE to 60 (seconds) but I don't see the connection closing after that interval. In fact I am seeing the connection idle for more than 60 seconds (checking this in MySQL) and being reused by subsequent object accesses.

https://docs.djangoproject.com/en/1.6/ref/databases/#persistent-connections
https://docs.djangoproject.com/en/1.6/ref/settings/#std:setting-CONN_MAX_AGE

Am I missing something?

Cheers

François

No comments:

Post a Comment