Overview
Artifact ID: | 843df95c8153895a5a87ab1a337986cab557bdf60fafe0ce295bcdb275e06956 |
---|---|
Ticket: | 38b421299fb6f4d8ce41ff7b128ed4f93ceb7476
open connections aren't closed properly |
User & Date: | anonymous 2019-12-04 18:52:26 |
Changes
- foundin changed to: "1.1.1"
- icomment:
Executing "tdbc::mysql::connection create" will eventually throw "Too many connections", if I executed it too often before. The general workflow is: ----------------- tdbc::mysql::connection create # A single SELECT-statement $db_handle close ----------------- This workflow is run very often and around run 157 the mentioned erro is thrown. A comparison of the file "tdbcmysql.c" with version 1.1.0 shows that the DEFINES to decrement the ref-counters were changed from something like "if (--bla->refCount <= 0)" to "if (bla->refCount-- <= 1)". I guess it means the same thing but is just written differently. Nevertheless the 2 DEFINES "DecrConnectionRefCount" and "DecrResultSetRefCount" seem to be wrong. The first has a "01" instead of just "1" and the latter still has "0" but the "--" already behind the variable. When changing both these cases to "1" it seems to work again.
- login: "anonymous"
- mimetype: "text/plain"
- private_contact changed to: "cae74a404afa0285f9c1d047b630d74528f5a937"
- severity changed to: "Severe"
- status changed to: "Open"
- title changed to: "open connections aren't closed properly"
- type changed to: "Code_Defect"