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

Add automatic restart mechanism for consumer of async queue. #620

Merged
merged 5 commits into from Oct 3, 2019

Conversation

limingxinleo
Copy link
Member

fix #611

try {
/** @var \Swoole\Coroutine\Socket $sock */
$sock = $this->process->exportSocket();
$recv = $sock->recv();
if ($this->event && $data = unserialize($recv)) {
$recv = $sock->recv($this->recvLength, $this->recvTimeout);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里还有个问题,但我试不出来。。就是接收数据可能会有多条消息被一起拿出来,需要搞个协议。

@limingxinleo limingxinleo added this to the v1.1.x milestone Sep 27, 2019
@limingxinleo limingxinleo merged commit 9eaec97 into hyperf:master Oct 3, 2019
@limingxinleo limingxinleo deleted the 1.1-process branch October 8, 2019 05:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add automatic restart mechanism for consumer of async queue
2 participants