I'm using Apache + mod_wsgi(3.3) + python 2.7.2 + cx_Oracle 5.1.1 +
oracle instance client 11g under Windows 2008R2
next code works corrent from python console:
import cx_Oracle
import time
pool = cx_Oracle.SessionPool('fiods','fiods', "omsk-edat-
db.omsk.luxoft.com:1521/edattst", 1, 3, 2)
pool.timeout=60
print str(pool.opened)+" "+str(pool.busy)
con1 = pool.acquire()
print str(pool.opened)+" "+str(pool.busy)
con2 = pool.acquire()
print str(pool.opened)+" "+str(pool.busy)
con3 = pool.acquire()
print str(pool.opened)+" "+str(pool.busy)
pool.release(con3)
print str(pool.opened)+" "+str(pool.busy)
time.sleep(32)
print str(pool.opened)+" "+str(pool.busy)
time.sleep(32)
print str(pool.opened)+" "+str(pool.busy)
pool.release(con2)
print str(pool.opened)+" "+str(pool.busy)
but when I start this code under Apache it hang up on
pool.release(con2)
any ideas?
--
You received this message because you are subscribed to the Google Groups
"modwsgi" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/modwsgi?hl=en.