PHPDaemon/Core/ShellCommand.php 2 locations
|
@@ 198-201 (lines=4) @@
|
195 |
|
if ($this->timeout !== null) { |
196 |
|
$this->setTimeout($this->timeout); |
197 |
|
} |
198 |
|
if (!$this->bev->enable(\Event::READ | \Event::TIMEOUT | \Event::PERSIST)) { |
199 |
|
$this->finish(); |
200 |
|
return; |
201 |
|
} |
202 |
|
if (!$this->bevWrite->enable(\Event::WRITE | \Event::TIMEOUT | \Event::PERSIST)) { |
203 |
|
$this->finish(); |
204 |
|
return; |
|
@@ 202-205 (lines=4) @@
|
199 |
|
$this->finish(); |
200 |
|
return; |
201 |
|
} |
202 |
|
if (!$this->bevWrite->enable(\Event::WRITE | \Event::TIMEOUT | \Event::PERSIST)) { |
203 |
|
$this->finish(); |
204 |
|
return; |
205 |
|
} |
206 |
|
$this->bev->setWatermark(\Event::READ, $this->lowMark, $this->highMark); |
207 |
|
|
208 |
|
init: |
PHPDaemon/Network/IOStream.php 1 location
|
@@ 314-317 (lines=4) @@
|
311 |
|
$this->finish(); |
312 |
|
return; |
313 |
|
} |
314 |
|
if (!$this->bev->enable(\Event::READ | \Event::WRITE | \Event::TIMEOUT | \Event::PERSIST)) { |
315 |
|
$this->finish(); |
316 |
|
return; |
317 |
|
} |
318 |
|
$this->bev->setWatermark(\Event::READ, $this->lowMark, $this->highMark); |
319 |
|
init: |
320 |
|
if ($this->keepalive) { |