Ticket Change Details
Bounty program for improvements to Tcl and certain Tcl packages.

Artifact ID: 843df95c8153895a5a87ab1a337986cab557bdf60fafe0ce295bcdb275e06956
Ticket: 38b421299fb6f4d8ce41ff7b128ed4f93ceb7476
open connections aren't closed properly
User & Date: anonymous 2019-12-04 18:52:26

  1. Change foundin to "1.1.1"
  2. Change icomment to:

    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.

  3. Change login to "anonymous"
  4. Change mimetype to "text/plain"
  5. Change private_contact to "cae74a404afa0285f9c1d047b630d74528f5a937"
  6. Change severity to "Severe"
  7. Change status to "Open"
  8. Change title to "open connections aren't closed properly"
  9. Change type to "Code_Defect"