Skip Menu |
 

This queue is for tickets about the DBD-mysql CPAN distribution.

Report information
The Basics
Id: 110983
Status: resolved
Priority: 0/
Queue: DBD-mysql

People
Owner: CAPTTOFU [...] cpan.org
Requestors: larryl [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 4.035_03
Fixed in: (no value)



Subject: mysql_fd should return undef if DBH is disconnected
MIME-Version: 1.0
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
Message-ID: <rt-4.0.18-3162-1452185998-1579.0-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 390
Download (untitled) / with headers
text/plain 390b
mysql_fd will continue to return the same file descriptor after the connection is closed. That file descriptor might get reused by the OS for an unrelated process, in which case trying to do anything with it could be bad. mysql_fd should return undef if the connection has been closed. I looked at the XS code but it was not obvious to me how to create a patch for this. Thanks! Larry
Subject: mysql_fd should return undef if DBH is disconnected
MIME-Version: 1.0
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
Message-ID: <rt-4.0.18-3156-1452186003-1040.0-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 390
Download (untitled) / with headers
text/plain 390b
mysql_fd will continue to return the same file descriptor after the connection is closed. That file descriptor might get reused by the OS for an unrelated process, in which case trying to do anything with it could be bad. mysql_fd should return undef if the connection has been closed. I looked at the XS code but it was not obvious to me how to create a patch for this. Thanks! Larry
MIME-Version: 1.0
Subject: mysql_fd should return undef if DBH is disconnected (duplicate)
In-Reply-To: <rt-4.0.18-3156-1452186003-1040.0-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <rt-4.0.18-3156-1452186003-1040.0-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-3162-1452186276-424.110984-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 64
Sorry, somehow created a duplicate of 110983. Closing this one.
MIME-Version: 1.0
In-Reply-To: <rt-4.0.18-3162-1452185998-1579.0-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <rt-4.0.18-3162-1452185998-1579.0-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-17283-1484771484-1884.110983-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 72
MIME-Version: 1.0
In-Reply-To: <rt-4.0.18-17283-1484771484-1884.110983-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <rt-4.0.18-3162-1452185998-1579.0-0-0 [...] rt.cpan.org> <rt-4.0.18-17283-1484771484-1884.110983-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-11923-1498900875-385.110983-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 37
Reopening, fix was reverted in 4.043.
X-RT-Interface: REST
MIME-Version: 1.0
X-Mailer: MIME-tools 5.504 (Entity 5.504)
RT-Message-ID: <rt-4.0.18-21852-1510732475-8.110983-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Content-Disposition: inline
Content-Transfer-Encoding: binary
Content-Length: 78


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.