PHPDaemon/Core/ShellCommand.php 2 locations
|
@@ 221-224 (lines=4) @@
|
| 218 |
|
if ($this->timeout !== null) { |
| 219 |
|
$this->setTimeout($this->timeout); |
| 220 |
|
} |
| 221 |
|
if (!$this->bev->enable(\Event::READ | \Event::TIMEOUT | \Event::PERSIST)) { |
| 222 |
|
$this->finish(); |
| 223 |
|
return; |
| 224 |
|
} |
| 225 |
|
if (!$this->bevWrite->enable(\Event::WRITE | \Event::TIMEOUT | \Event::PERSIST)) { |
| 226 |
|
$this->finish(); |
| 227 |
|
return; |
|
@@ 225-228 (lines=4) @@
|
| 222 |
|
$this->finish(); |
| 223 |
|
return; |
| 224 |
|
} |
| 225 |
|
if (!$this->bevWrite->enable(\Event::WRITE | \Event::TIMEOUT | \Event::PERSIST)) { |
| 226 |
|
$this->finish(); |
| 227 |
|
return; |
| 228 |
|
} |
| 229 |
|
$this->bev->setWatermark(\Event::READ, $this->lowMark, $this->highMark); |
| 230 |
|
|
| 231 |
|
init: |
PHPDaemon/Network/IOStream.php 1 location
|
@@ 339-342 (lines=4) @@
|
| 336 |
|
$this->finish(); |
| 337 |
|
return; |
| 338 |
|
} |
| 339 |
|
if (!$this->bev->enable(\Event::READ | \Event::WRITE | \Event::TIMEOUT | \Event::PERSIST)) { |
| 340 |
|
$this->finish(); |
| 341 |
|
return; |
| 342 |
|
} |
| 343 |
|
$this->bev->setWatermark(\Event::READ, $this->lowMark, $this->highMark); |
| 344 |
|
init: |
| 345 |
|
if ($this->keepalive && $this->fd != null) { |