tdbc::mysql

Ticket Change Details
Login
Overview

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

  1. foundin changed to: "1.1.1"
  2. 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.
    
  3. login: "anonymous"
  4. mimetype: "text/plain"
  5. private_contact changed to: "cae74a404afa0285f9c1d047b630d74528f5a937"
  6. severity changed to: "Severe"
  7. status changed to: "Open"
  8. title changed to: "open connections aren't closed properly"
  9. type changed to: "Code_Defect"