[Bug 266555] devel/pecl-swoole dont work mode SWOOLE_PROCESS

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 22 Sep 2022 21:17:21 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266555

            Bug ID: 266555
           Summary: devel/pecl-swoole dont work mode SWOOLE_PROCESS
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: vanilla@FreeBSD.org
          Reporter: ricardohfsp@gmail.com
             Flags: maintainer-feedback?(vanilla@FreeBSD.org)
          Assignee: vanilla@FreeBSD.org

In FreeBSD the mode SWOOLE_PROCESS not working, i am testing in 12.3-RELEASE
and 13.1-RELEASE.

This a simple code to test:
<?php

$http = new Swoole\Http\Server("127.0.0.1", 9501, SWOOLE_PROCESS);
$http->on('request', function ($request, $response) {
    $response->end("<h1>Hello Swoole. #".rand(1000, 9999)."</h1>");
});
$http->start();

I init this code in a terminal and call with cURL in another, but requisition
is locked and dont return "Hello Swoole XyXy". If modify mode to SWOOLE_BASE
call with cURL return correct.

I tested versions of Swoole 4.8.10, 4.8.11, 4.8.12 and 5.0.0, with ports and
pkg, but any recent version dont work in FreeBSD with mode SWOOLE_PROCESS.

Currently i runing with sucess with mode SWOOLE_PROCESS, but in an old version
Swoole in FreeBSD 12.2-STABLE, Swoole 4.8.9 and PHP 7.3.18.

-- 
You are receiving this mail because:
You are the assignee for the bug.