Git Product home page Git Product logo

Comments (10)

Reasno avatar Reasno commented on July 30, 2024

为什么http服务器无法启动?

from gotask.

Niexiawei avatar Niexiawei commented on July 30, 2024

我也没找到原因 只要开启了go2php 控制台输出就和上面一样 框架自带的HTTP服务器就不启动了 试了 用 ip 和 unix 地址 都不行

from gotask.

Reasno avatar Reasno commented on July 30, 2024

我也没找到原因 只要开启了go2php 控制台输出就和上面一样 框架自带的HTTP服务器就不启动了 试了 用 ip 和 unix 地址 都不行

无法复现

from gotask.

Niexiawei avatar Niexiawei commented on July 30, 2024

我自己在试试 可能和其他事件有冲突

能问个问题吗 go2php 这个为什么不单独放在进程中

from gotask.

Niexiawei avatar Niexiawei commented on July 30, 2024

去除了代码中的 AfterWorkerStart 现在可以正常启动

不过 不会显示 HTTP Server listening at xxxxxx 这种提示了

image

hyperf 这边的服务器监听的 也是 AfterWorkerStart 这个事件 不知道是不是有冲突

from gotask.

Reasno avatar Reasno commented on July 30, 2024

去除了代码中的 AfterWorkerStart 现在可以正常启动

不过 不会显示 HTTP Server listening at xxxxxx 这种提示了

image

hyperf 这边的服务器监听的 也是 AfterWorkerStart 这个事件 不知道是不是有冲突

这listener是你自己的还是框架里的?

from gotask.

Reasno avatar Reasno commented on July 30, 2024

我自己在试试 可能和其他事件有冲突

能问个问题吗 go2php 这个为什么不单独放在进程中

可以放到单独的进程中其实。

from gotask.

Niexiawei avatar Niexiawei commented on July 30, 2024

我截图的这个是 框架里面的 负责HTTP WS TCP 等Server 启动的

from gotask.

Niexiawei avatar Niexiawei commented on July 30, 2024

image

我尝试在外面套了一层协程 发现就都正常了
不知道这样会不会有啥问题不

from gotask.

Reasno avatar Reasno commented on July 30, 2024

image

我尝试在外面套了一层协程 发现就都正常了

不知道这样会不会有啥问题不

应该不会有问题 可以提个PR

from gotask.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.