Skip to content

Commit 81619b9

Browse files
author
niulingyun
committed
协程超时时间要比睡眠时间更长
1 parent b6064cb commit 81619b9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/Coroutine/Sleep.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ class Sleep extends Base
2222
*/
2323
public function goSleep(int $mSec)
2424
{
25+
$this->timeout = $mSec + 1000; //协程超时时间要比睡眠时间更长
2526
$this->__sleepTime = $mSec;
2627
$this->requestId = $this->getContext()->getLogId();
2728

0 commit comments

Comments
 (0)