Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:123219 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id 106341A009C for ; Fri, 26 Apr 2024 14:39:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1714142396; bh=NtzIiR9YW3dIAK1zZlPWbcLToaAAJcn/1MSy/rjOqok=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=OFaADnMAjxRlqpf67YNnTaSyMBqA1CgjmVzQO+oae2l8SP3zgutiTz1/wN9itpSiS QuzOxaK0/bIUVPDHCH7tmj8RWzzROPAKDKMDURYDCZ8OHH6912NrMxOCb4l6mkKLMr i3SQQmNZzRP9VkbQAf3DRJDyoOVlH+HM4pTCkpyPLs9k0FvAE44JJIG+VpiwkrCVtA Gxj1ZPxYoBICZNzxDk7ip2J5euc+GXDVgAAuSxZKUtcR6BuXpmCHG+70Ojwc8aV7OS Gb/2taSRBne1ttz87bUO8S1xURWJmRVHSILiko/yD4Ayt7y6SSO5+G2Yrxy8XLWY4b 2mJz6qLfZR4IA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id F0466180629 for ; Fri, 26 Apr 2024 14:39:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_50,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, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com [209.85.167.45]) (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 ; Fri, 26 Apr 2024 14:39:55 +0000 (UTC) Received: by mail-lf1-f45.google.com with SMTP id 2adb3069b0e04-518a56cdc03so2528052e87.1 for ; Fri, 26 Apr 2024 07:39:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714142352; x=1714747152; darn=lists.php.net; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=lG2rCNYbtaecszsIpzksLJmWD6ZJ5MRrp5y9YX6A16Y=; b=ccipJpg4E1YtKlixZcTQUnJTtwNvO+EoRSJu8cBpebO8Rns6viTVt07bGpjDqZ+DH5 ESslumxHtL88tw0m51Lcd0aznst5EgH6bOgJgmS/pcgh0BfPqXQaKI01KGhB1TEs/pF5 vGXReLhqlCBYedd8dlTmQjDmSbRjgUszXpCKPaimS1ds2z0PzWYglQnMsv8kMN1ol3Zl 37C4Gr2pXpZjcZmeYKXbb1bUE4jr6wv1j781SCVoxzqgrNSReHSfYBloQ2LMRcSqq/Ms 0UgeUswxvndAzOBI30WRomc1r1ZG4320pFzSsfLX7BJ9YEhBbL6TpnErtUBSUIzbZGAa YBrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714142352; x=1714747152; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=lG2rCNYbtaecszsIpzksLJmWD6ZJ5MRrp5y9YX6A16Y=; b=w+26UmQBpq2wHnjyBQagl443LeqsQjHk34sJSF+ukoC5Z9+yLAI2O5ccfRwUh/6Nhf tFTGf1mbEoaIpXvZ61cq5MkQeBIW7pb108Pd2GeQf2CrRtAJKx79l85+O2nXcyC7ao4D GpdN9V2EcrubMRhkJA2RVPAeuhH/suSEYeZ/+U41MUs9XQgcAUWKZcQRoBrIFSUk+VcE PEWdaH1S0fwQtpCICzM7KkjWjNMJouQub+pv3iJNN14Hu/gdA10nAoXJuofhBniPlZLi t2cWtR4hZdze/q4YRYQac2SeFCqgf94rNNbpjlXesoWB3kkEOKK2MENpyQnRV0U9fQGH LJeA== X-Gm-Message-State: AOJu0Yz+vmQead7xECSe2RiEIFCW9L9WwUL25Y8CAD0kzFgzQkchhefC HMs650r6oN+mYXx5VrGt8Cipn5N+/3Uv3Kk3pYoBToaqSM7aBHOByALgKbfv6sENZ06dI97zN9E vd28KNxX/OkWQjFIyF1UP5G2r+QY= X-Google-Smtp-Source: AGHT+IFTiCTQBow+xMDFWmDcjXpBWuph/W/4RmiLb0iNzfQztQ4udL1JpYypOYEHlXMi1z0pVXtWtnOoXXvaCkcy+4E= X-Received: by 2002:a05:6512:458:b0:518:95b6:176f with SMTP id y24-20020a056512045800b0051895b6176fmr1522335lfk.50.1714142351920; Fri, 26 Apr 2024 07:39:11 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 References: In-Reply-To: Date: Fri, 26 Apr 2024 16:38:56 +0200 Message-ID: Subject: Re: [PHP-DEV] RFC apache2handler - Added the apache_connection_stream() function for CGI WebSockets To: Richard Miles Cc: internals@lists.php.net Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable From: landers.robert@gmail.com (Robert Landers) On Fri, Apr 26, 2024 at 6:43=E2=80=AFAM Richard Miles wrote: > > Howdy everyone, > > I=E2=80=99m reaching out in an attempt to start an RFC for the apach2hand= ler module, and I'm eager to hear your perspectives. I=E2=80=99ve already c= reated a Draft PR on GitHub (https://github.com/php/php-src/pull/14047), an= d I am ready to move forward with the next steps of the proposal (RFC karma= /wiki). The current Apache2handler issue is the inability to get user input= during an HTTP 101 Upgrade request. Current PHP standards require binding = to a port and serving all connections in a PHP CLI server. In my brief draf= t, I explain how current io streams function and how this solution differs.= My change could be a game-changer for shared hosting environments. But wha= t's even more exciting is its unexplored potential for normal requests. Thi= s could open up a whole new world of possibilities. I'm open to further dis= cussion and collaboration to ensure its success and get passing tests :) > > The function would expose the HTTPD function `ap_get_conn_socket`; below = are the generalized calls. > > apr_sock =3D ap_get_conn_socket(r->connection); > stream =3D php_stream_sock_open_from_socket(fd, NULL); > apr_os_sock_get(&fd, apr_sock) > php_stream_to_zval(stream, return_value); > > Please refer to the PR for the real implementation :) Thanks for your tim= e! > > > PHP Wiki user: WookieeTyler > > Best, > > Richard Miles > Miles Systems LLC > Richard@Miles.Systems > (817) 789-3294 > > > > > > Confidentiality Notice: This email message, including any attachments, is= for the sole use of the intended recipient(s) and may contain confidential= and privileged information. Any unauthorized review, use, disclosure, or d= istribution is prohibited. If you are not the intended recipient, please co= ntact the sender by reply email and destroy all copies of the original mess= age. > Heh, that's pretty cool that html emails work here, but do note that it's against the rules (I didn't make the rules, I'm just letting you know). https://www.php.net/mailing-lists.php Robert Landers Software Engineer Utrecht NL