gotask是不支持协程风格吗?

Open
#70 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
php
Domain
backend

Research direction

Start by reproducing the startup failure with coroutine style enabled, then inspect the process implementation referenced in the report and the server configuration that disables coroutine style. Trace why process is null before handle() runs. Done means coroutine-style operation either works without repeated errors or is explicitly rejected with a clear documented limitation.

Written by the indexing model from the issue text.

Description

image
服务启动之后一直报 on null 的错误,我看了一下这部分process的源码。
只有当服务不是协程的时候,才会new SwooleProcess,不然process就肯定是null。
image
但因为 while(ture)
image
就会一直去跑handle(),然后一直拿不到process,然后一直log错误。
如果在server那边取消协程风格就能正常运行了。

所以是hyperf/gotask是不支持协程风格吗?

Dominant language
PHP
Stars
255
Forks
29
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from hyperf/gotask

All issues in hyperf/gotask

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.