Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:108276 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 1289 invoked from network); 27 Jan 2020 20:56:00 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 27 Jan 2020 20:56:00 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 3804A180551 for ; Mon, 27 Jan 2020 11:06:12 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 27 Jan 2020 11:06:11 -0800 (PST) Received: by mail-wm1-f47.google.com with SMTP id f129so8260999wmf.2 for ; Mon, 27 Jan 2020 11:06:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=0afyMLFn7MmBa7HeprEsJWU8VOCu4oHXRbWlkUJ79bY=; b=oeN0xbbHrMgmBK///VyxI+bjLPYSTBUVuwcymCC6tMHVwt2tVubSJonkQg4dt/zYhb nc8xtBsExLccie/AYyftqzN+TY1pg4vGmShqor+MaVLMcSlc5HUGMp2Z9STyr+R/QpGy yq05dRHcQiQtES1kdiE/9SFT36XrotEXdDk8DhowjBHNK1+CPJ8pl89Tk2FVFSnnl5S+ Frhweu6m6cWpCBXeLS5R6ruMsZ9JgjBZqwLQMvfSyG2acCGJixDMm0X5zFJ8GtrRqrsP PBLChRDWkkF3T3rBqBCyZ7pW9We2q2pomQxocVXEIt2o5qt9tzm8SEZ5mOewn82NitQt 7LZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=0afyMLFn7MmBa7HeprEsJWU8VOCu4oHXRbWlkUJ79bY=; b=FgxFmilfaC1ReKIBm4JjteF+diW48X8SK7cqcRQlfT/DaLagl9KUu2PJj9adN3NyNv Ethbu89N5LwKHbd5v6jVyBiakgv/af+svC7hHKHjYplrGRFdKTjXNTuzVwTkgOmz7Eij fyMigjuttI4u2NvHh6eAphGtUKfCzdBxLawAZ9WQ7TLhs2q5EZDYmW/WWATnr0pArYFt xfrf52REw7RjVfDYZU1J5L0FC68Pt0uHF9EemO7CS8b9sa+MjEtgJnfZku/gNaNkF5b7 jhclMn5Mjey0Dkq8ld6n5IfZ66vhti9Dvc+i+YTnaCc9HCknXZhmdNjyKIl616nDMPVo J+NQ== X-Gm-Message-State: APjAAAWJQYVfy2x1j/PtbfmHGARfnFVTyedjKDtm4g5NcDp8P1my93Ig 0gUkI8/SHOMC9wDO+KA2SZ9RBjeY X-Google-Smtp-Source: APXvYqyWpH1xOO+wVAQrKy/ZqOe+Wle4n6U+eGrnWahB704RRfFL6YirhtVYcaAqJLkI650yfqDQOg== X-Received: by 2002:a05:600c:291e:: with SMTP id i30mr133977wmd.40.1580151969980; Mon, 27 Jan 2020 11:06:09 -0800 (PST) Received: from [192.168.0.14] (cpc84253-brig22-2-0-cust114.3-3.cable.virginm.net. [81.108.141.115]) by smtp.googlemail.com with ESMTPSA id q11sm21976459wrp.24.2020.01.27.11.06.09 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 27 Jan 2020 11:06:09 -0800 (PST) To: internals@lists.php.net References: <3ca6d665-1a4f-8f7a-c82a-2e899f2e8df1@gmail.com> <44ba543d-b6eb-888b-9ed5-0f1e9d3b53b9@gmail.com> <8E382251-AE41-4BD9-A5F8-135D11B9E10D@newclarity.net> <98A11C8F-6B51-4774-A2F6-6B6C7311180B@newclarity.net> <4fc40434-cd62-4428-9a1d-bc445e156309@www.fastmail.com> Message-ID: <33958a63-38d7-523d-9ffd-fadde5f42656@gmail.com> Date: Mon, 27 Jan 2020 19:06:06 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <4fc40434-cd62-4428-9a1d-bc445e156309@www.fastmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-GB Subject: Re: [PHP-DEV] Add viable long running execution model to php 8 From: rowan.collins@gmail.com (Rowan Tommins) On 27/01/2020 15:50, Larry Garfield wrote: > I want to point out that there's 2 or 3 very different use cases and > models being discussed in this thread, and it's important to keep them > separate: > [...] Can I add another that's been mentioned in passing: 4. A mechanism for working with WebSockets. This doesn't actually require a different process model (although it would undoubtedly benefit from one, in terms of system resources), but does require a new way to talk to the web server / network (a new kind of "SAPI"). I can't think of a fundamental reason why php-fpm couldn't leave a process running that was connected as one end of a web socket, but doing so would be pretty useless if there was no API to send and receive data over that socket. Regards, -- Rowan Tommins (né Collins) [IMSoP]