-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Webman使用easyhttp时,异步访问有问题 #1
Comments
我这没问题啊 |
我这是webman最新的,c测试代码也没问题啊。。 |
测试环境windows |
public function test(Request $request)
} 增加 wait(); 等待获取 |
加wait虽然没问题,但这也相当于同步了吧。。 |
是不是因为不加wait,返回后导致上下文环境释放什么的未知原因呢? |
在切换其他方法路由的时候 异步就返回来了 |
群主有 http异步插件 |
好的,谢谢~ |
群主的http异步是哪个? |
|
谢谢~ |
代码类似这样:
出现问题:
访问test时,异步输出一直没有,此时如果访问一下test1,异步立刻输出,且同步也输出:
worker listen processes status
webman http://0.0.0.0:8100 2 [ok]
monitor none 1 [ok]
{"code":200,"msg":"请求成功"}
(此时一直不动,直到访问test1)
异步请求成功,响应内容:hello webman
同步请求成功,响应内容:hello webman
(再次访问test,仍然是这样)
{"code":200,"msg":"请求成功"}
请问是什么情况呢?
The text was updated successfully, but these errors were encountered: