Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:122079 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 76725 invoked from network); 1 Jan 2024 11:18:24 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 1 Jan 2024 11:18:24 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1704107933; bh=S/u9S/4ClDQfwuLOZq5LB3yWjS3KJ6jXFLo92Ln7v4w=; h=Date:From:To:CC:Subject:In-Reply-To:References:From; b=AOQmg1JYvc9V5/Yg/THXtACvpsdddFkkj98WQmjE1KZBarfZ6BHyANm9AS7BBNhzw YRlrV230GFduEhxGbaw9yVevV7D7iEGr0FUl25/i7pH/X6vAtxUQS5Cq+qzgHGc/XH bZe7ywy16t+xHzHbNraTkPVMCGf093xBvCUqc/NcGxjBkQHgyaNbKu3piq/EYaZ15K l6R8Wk6T541Bu8kjl/NMgcwyDq8eUWBQRpPkn8tdNTPjHhYDIN8pMyuRpb+RFXbnEM whbLCzAS5YA09iW2aAkUY6uf7J02SwS7+Oq2yc6WzX75kNhqH7aTNRpHCsL80Ik2Lu 6OjFM6j7gSGDw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id C8A2518005B for ; Mon, 1 Jan 2024 03:18:52 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 1 Jan 2024 03:18:52 -0800 (PST) Received: by mail-wr1-f53.google.com with SMTP id ffacd0b85a97d-3368ae75082so4471913f8f.1 for ; Mon, 01 Jan 2024 03:18:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704107902; x=1704712702; darn=lists.php.net; h=content-transfer-encoding:mime-version:message-id:references :in-reply-to:user-agent:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to; bh=S/u9S/4ClDQfwuLOZq5LB3yWjS3KJ6jXFLo92Ln7v4w=; b=F5eMYMVQwwYsqFJ/ltdhZsycTD1Yz8RYuIPoztytaNDxpqMGRY675zVsdcNOTihD4W UFoqFMR9VCY1RfEs9IY0R6yk7KAR75lmG+YtUpOVSDK3amXD7YMZ/gcLJUpuKJsw6xkh Wco5Xl8hxh6IQvEkJ26/bLslDC9Qi8XWP93QosF7nXzBdkSA/Wsrdc9NPy9gv72A0Ovc WwBBVUQP1L3CM8dh0PSjgLVbX8EPf6oDbcktQrwoHJkj081Wrq7Sg1ED3+ERr4E65yef hSkY4+tqcU13dbcY90eBdgdlMdXkZUIMR1xCBze9kpQHoohlt6TF4LTOg7Cuge88RyV0 WOSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704107902; x=1704712702; h=content-transfer-encoding:mime-version:message-id:references :in-reply-to:user-agent:subject:cc:to:from:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=S/u9S/4ClDQfwuLOZq5LB3yWjS3KJ6jXFLo92Ln7v4w=; b=QeiPD53OFVaTnIBWieHSdnBdRFwiefs7IKS8xnY5dqttalsGxLHtkVyMHTxR/IaOHK aBvUvoofQvImyjOhXiIx+hSMM3rqWSyGJrNKfoxw4KOUsTdithvNg0SsU4ovWxQKdUjI 7x/5MU+7g4Us2EsIzHPu5q8554qbDTVAAG+Y1kDTiOt/c6aLm62+F6svap+gzZ+eCn8a V3hbTW2oEVbyez1CbSxhEZ9x6Y8Mh9memUKojO3Q9VVMG+v6yVONspV3+frCsViCVZSr QujH79ZHUSc2xOzPVpf6MonW2MOVurv2bGWVeJBqoYbnDprru9HTcEKZ6mSrITQZ2kM1 cUMg== X-Gm-Message-State: AOJu0YyNj8q8XbpPBYYbkoAsI1BwfcKovzvdj53W0FzkhmmlqnP5b8wX Gv4NYji6lqGkGt86cfsr/RY= X-Google-Smtp-Source: AGHT+IG7q6NFFp/eUiiDtHWHz3ZQG6FAsIZtdVdmykvSHFeVR1RTOn1kT9FAoCN21nwr4bhPt4p/kQ== X-Received: by 2002:a05:600c:4e8f:b0:40d:5f47:434 with SMTP id f15-20020a05600c4e8f00b0040d5f470434mr3331920wmq.21.1704107901591; Mon, 01 Jan 2024 03:18:21 -0800 (PST) Received: from [127.0.0.1] (cpc83311-brig21-2-0-cust191.3-3.cable.virginm.net. [86.20.40.192]) by smtp.gmail.com with ESMTPSA id u15-20020a05600c138f00b0040d7b340e07sm11186797wmf.45.2024.01.01.03.18.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 01 Jan 2024 03:18:20 -0800 (PST) Date: Mon, 01 Jan 2024 11:18:19 +0000 To: Pierre Joye CC: php internals User-Agent: K-9 Mail for Android In-Reply-To: References: <5060b986-2e5a-46e4-9c83-763e5b155e83@gmail.com> <6f7815b9-80cc-4e08-819a-49dca090116f@gmail.com> <7F63D301-1A46-49AA-9140-F64543E902C5@gmail.com> <8fb6672c-06e9-4f74-b2f2-cd1a265c75a5@app.fastmail.com> <96C28696-7C58-4018-84EB-69CF4189649B@gmail.com> <881CFFCD-220F-4A58-B5B9-C1FFFCE5E278@gmail.com> Message-ID: <2462CAA8-3E66-4DAD-8489-77E035708087@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] RFC proposal: worker mode primitives for SAPIs From: rowan.collins@gmail.com (Rowan Tommins) On 31 December 2023 16:31:31 GMT, Pierre Joye wr= ote: >php handles this in threadsafe mode Depending on your exact definition of "php", this is either irrelevant or = just plain wrong=2E If you mean "the HTTP SAPIs shipped with official builds of PHP", then it'= s true, none handle multiple concurrent requests in a single thread using a= sync I/O=2E But none handle multiple consecutive requests in a single threa= d using a "worker mode" either, which is the whole point of this conversati= on=2E If you mean for "php" to include third party HTTP handlers such as Franken= PHP, then it also includes Swoole, which is what I was describing=2E Please= someone correct me if I'm wrong, but I understand ReactPHP and AMPHP also = include HTTP servers using the same principle=2E So, to reiterate my point once more: implementations of PHP using async co= ncurrency are out there already in production use=2E If we're attempting to= standardise a new API for worker modes (i=2Ee=2E HTTP servers which are no= longer "shared nothing"), choosing one which can be used by consecutive wo= rker modes (FrankenPHP , RoadRunner) but not concurrent ones (Swoole, React= PHP, AMPHP) feels like a big missed opportunity=2E Regards, --=20 Rowan Tommins [IMSoP]