PHPDaemon/Network/IOStream.php 1 location
|
@@ 342-345 (lines=4) @@
|
339 |
|
$this->finish(); |
340 |
|
return; |
341 |
|
} |
342 |
|
if (!$this->bev->enable(\Event::READ | \Event::WRITE | \Event::TIMEOUT | \Event::PERSIST)) { |
343 |
|
$this->finish(); |
344 |
|
return; |
345 |
|
} |
346 |
|
$this->bev->setWatermark(\Event::READ, $this->lowMark, $this->highMark); |
347 |
|
init: |
348 |
|
if ($this->keepalive && $this->fd != null) { |
PHPDaemon/Core/ShellCommand.php 2 locations
|
@@ 280-283 (lines=4) @@
|
277 |
|
if ($this->timeout !== null) { |
278 |
|
$this->setTimeout($this->timeout); |
279 |
|
} |
280 |
|
if (!$this->bev->enable(\Event::READ | \Event::TIMEOUT | \Event::PERSIST)) { |
281 |
|
$this->finish(); |
282 |
|
|
283 |
|
return; |
284 |
|
} |
285 |
|
if (!$this->bevWrite->enable(\Event::WRITE | \Event::TIMEOUT | \Event::PERSIST)) { |
286 |
|
$this->finish(); |
|
@@ 285-288 (lines=4) @@
|
282 |
|
|
283 |
|
return; |
284 |
|
} |
285 |
|
if (!$this->bevWrite->enable(\Event::WRITE | \Event::TIMEOUT | \Event::PERSIST)) { |
286 |
|
$this->finish(); |
287 |
|
|
288 |
|
return; |
289 |
|
} |
290 |
|
$this->bev->setWatermark(\Event::READ, $this->lowMark, $this->highMark); |
291 |
|
$this->alive = true; |