Skip to content
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

process_timeout #27

Closed
sm2017 opened this issue May 15, 2017 · 3 comments
Closed

process_timeout #27

sm2017 opened this issue May 15, 2017 · 3 comments
Labels

Comments

@sm2017
Copy link

sm2017 commented May 15, 2017

What is process_timeout? and why occurred?

2017-05-13 21:13:26 pid:23206 process_timeout:
#1 /home/app/vendor/workerman/workerman/Events/React/StreamSelectLoop.php(149): pcntl_signal_dispatch()
#2 /home/app/vendor/react/event-loop/src/StreamSelectLoop.php(225): Workerman\Events\React\StreamSelectLoop->streamSelect(Array, Array, 10000)
#3 /home/app/vendor/react/event-loop/src/StreamSelectLoop.php(205): React\EventLoop\StreamSelectLoop->waitForStreamActivity(10000)
#4 /home/app/vendor/workerman/workerman/Events/React/StreamSelectLoop.php(104): React\EventLoop\StreamSelectLoop->run()
#5 /home/app/vendor/workerman/workerman/Worker.php(1561): Workerman\Events\React\StreamSelectLoop->loop()
#6 /home/app/vendor/workerman/gateway-worker/src/BusinessWorker.php(183): Workerman\Worker->run()
#7 /home/app/vendor/workerman/workerman/Worker.php(959): GatewayWorker\BusinessWorker->run()
#8 /home/app/vendor/workerman/workerman/Worker.php(922): Workerman\Worker::forkOneWorker(Object(GatewayWorker\BusinessWorker))
#9 /home/app/vendor/workerman/workerman/Worker.php(430): Workerman\Worker::forkWorkers()
#10 /home/index.php(45): Workerman\Worker::runAll()
#11 {main}
@walkor
Copy link
Owner

walkor commented May 15, 2017

It means that there are some time-consuming operations in Events::onMessage.
Execution of Events::onMessage is too slow (more than 30 seconds).

@sm2017
Copy link
Author

sm2017 commented May 16, 2017

How can I increase the timeout?

@walkor
Copy link
Owner

walkor commented May 16, 2017

Use $bussiness_worker->processTimeout.

https://github.com/walkor/GatewayWorker/blob/master/src/BusinessWorker.php#L59

@sm2017 sm2017 closed this as completed Jul 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants