Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:54779 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 12333 invoked from network); 22 Aug 2011 08:40:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Aug 2011 08:40:10 -0000 Authentication-Results: pb1.pair.com smtp.mail=laruence@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=laruence@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.170 as permitted sender) X-PHP-List-Original-Sender: laruence@gmail.com X-Host-Fingerprint: 209.85.220.170 mail-vx0-f170.google.com Received: from [209.85.220.170] ([209.85.220.170:44941] helo=mail-vx0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 63/95-13024-9E5125E4 for ; Mon, 22 Aug 2011 04:40:09 -0400 Received: by vxh24 with SMTP id 24so4344981vxh.29 for ; Mon, 22 Aug 2011 01:40:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type; bh=7+X8LECrX1NyPTxox/UoWbfYbhwceDJOPB3NVvgjV3A=; b=Yn3hMBdnwBcCcWrfZx9rwcU+v4UCINQwIABRFnr9EJW03KjalHUPqqz0g2QChoylUL 4GcRv/DBQQSqPIj3UyT+BJ1dA6ZwJqoo9J8O4+55ectkvZp5QBsZym75GMfvZYJ+m7GX qoYSybDygGsV8RKg8AU80THOQtgSlMwU4gUN4= MIME-Version: 1.0 Received: by 10.52.176.130 with SMTP id ci2mr1803513vdc.73.1314002407131; Mon, 22 Aug 2011 01:40:07 -0700 (PDT) Sender: laruence@gmail.com Received: by 10.220.200.76 with HTTP; Mon, 22 Aug 2011 01:40:07 -0700 (PDT) Date: Mon, 22 Aug 2011 16:40:07 +0800 X-Google-Sender-Auth: WBaC9q66IOM88kZHIK4jNk4E1Dk Message-ID: To: georg@mysql.com, andrey@mysql.com, uwendel@mysql.com Cc: PHP Internals Content-Type: multipart/mixed; boundary=bcaec51a817ab609c604ab140693 Subject: [PATCH]mysql_pconnect leaks file descriptors on reconnect From: laruence@php.net (Laruence) --bcaec51a817ab609c604ab140693 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable georg, andery, ulf: hello, there is a bug in mysqlnd, the details about this bug can be found at https://bugs.php.net/bug.php?id=3D55473 I found the reason is that mysqlnd_connect didn't free the stream when doing reconnect. I have submitted a patch for this, but I am not very sure the patch is okey. could you review this patch? thanks. --=20 Laruence =C2=A0Xinchen Hui http://www.laruence.com/ --bcaec51a817ab609c604ab140693--