Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:57350 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 11653 invoked from network); 13 Jan 2012 13:14:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Jan 2012 13:14:00 -0000 Authentication-Results: pb1.pair.com smtp.mail=landeholm@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=landeholm@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.210.170 as permitted sender) X-PHP-List-Original-Sender: landeholm@gmail.com X-Host-Fingerprint: 209.85.210.170 mail-iy0-f170.google.com Received: from [209.85.210.170] ([209.85.210.170:64964] helo=mail-iy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 39/A6-11048-71E201F4 for ; Fri, 13 Jan 2012 08:14:00 -0500 Received: by iagk10 with SMTP id k10so1923840iag.29 for ; Fri, 13 Jan 2012 05:13:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=p1NpZ8P/D+Vk1XatSbdYoRJJS0+1QBAvqgE+PtY3CrQ=; b=XVNtMKZbJpHoEf5IT3XE47o68YhzHLqCKE5dUZJK1m3dS1rp3FdEMI0sqEsQBzKQL5 wtrJXkgqMzvNEXrRa6GoHRi35phwilrmQNWHNFMNqEsoP3cFhktU/VaX5WN3XBkyk6Kh fDwnPUJtr0PJyXT00qLormAwjf5LkFefm7P+4= MIME-Version: 1.0 Received: by 10.50.182.130 with SMTP id ee2mr768912igc.30.1326460437131; Fri, 13 Jan 2012 05:13:57 -0800 (PST) Received: by 10.231.15.205 with HTTP; Fri, 13 Jan 2012 05:13:57 -0800 (PST) Date: Fri, 13 Jan 2012 14:13:57 +0100 Message-ID: To: internals@lists.php.net Content-Type: multipart/alternative; boundary=14dae9340e6529f2c704b668a319 Subject: FD_SETSIZE warning? From: landeholm@gmail.com (Hannes Landeholm) --14dae9340e6529f2c704b668a319 Content-Type: text/plain; charset=ISO-8859-1 I'm flooded with this warning when my system is under a high load and uses a lot of sockets/file descriptors. I get it in stream_select: "E_WARNING: E_WARNING caught: stream_select(): You MUST recompile PHP with a larger value of FD_SETSIZE. It is set to 1024, but you have descriptors numbered at least as high as 1024. --enable-fd-setsize=2048 is recommended, but you may want to set it to equal the maximum number of open files supported by your system, in order to avoid seeing this error again at a later date." Why would you even have a limit for this? Having your application suddenly crash because of some undocumented arbitrary internal PHP limit is a real punch-in-the-face for people trying to build robust PHP-CGI applications. Can someone explain to me why I need to be bothered about this? ~Hannes --14dae9340e6529f2c704b668a319--