1. Ed Crewe
  2. django-oraclepool
  3. Pull requests

Pull requests

#2 Merged
Repository
brentwatson
Branch
default
Repository
edcrewe
Branch
default

Ensure connection is alive - via conn.ping() - before returning the connection.

Author
  1. Brent Watson
Reviewers
Description

cx_Oracle doesn't seem to notice if the remote Oracle server closes your connection. Added code that makes sure connection is alive - via conn.ping() - before returning the a connection object. If the connection is closed, pool.drop(conn) is called, which will recycle the connection in the pool.

Comments (1)

  1. Ed Crewe repo owner

    Hi Brent,

    Those changes look good, thanks.

    I've merged them in. I'll just test them for a day or two on production to check alls OK, then aim to release as 1.2 at the weekend.

    Cheers, Ed