Open uint opened 6 years ago
It looks like SQL connections are kept open when using a dbi-store for session data storage. This might be related to #98, maybe?
dbi-store
Steps to reproduce:
Using session
README.markdown
sessions
CL-USER> (datafly.db:connect-toplevel :mysql :database-name "test" :username "root" :password "bleh") #<DBD.MYSQL:<DBD-MYSQL-CONNECTION> {1004C22513}> CL-USER> (datafly.db:execute (sxql:create-table :sessions ((id :type '(:int 20) :primary-key t :unique t) (session_data :type '(:varchar 2048) :not-null nil :default nil)))) ; No value CL-USER> (datafly.db:disconnect-toplevel) NIL
After that, every following request is met with:
MySQL error: "Too many connections" (errno = 1040). [Condition of type COM.HACKINGHAT.CL-MYSQL-SYSTEM:MYSQL-ERROR]
It looks like SQL connections are kept open when using a
dbi-store
for session data storage. This might be related to #98, maybe?Steps to reproduce:
Using session
section ofREADME.markdown
.sessions
table in your DB. Otherwise you'll get an error about it. This worked for me:After that, every following request is met with: