PHPDaemon/Servers/HTTP/Connection.php 1 location
|
@@ 275-284 (lines=10) @@
|
272 |
|
$this->state = self::STATE_HEADERS; |
273 |
|
} |
274 |
|
|
275 |
|
if ($this->state === self::STATE_HEADERS) { |
276 |
|
if (!$this->httpReadHeaders()) { |
277 |
|
return; |
278 |
|
} |
279 |
|
if (!$this->httpProcessHeaders()) { |
280 |
|
$this->finish(); |
281 |
|
return; |
282 |
|
} |
283 |
|
$this->state = self::STATE_CONTENT; |
284 |
|
} |
285 |
|
if ($this->state === self::STATE_CONTENT) { |
286 |
|
if (!isset($this->req->attrs->input) || !$this->req->attrs->input) { |
287 |
|
$this->finish(); |
PHPDaemon/Servers/WebSocket/Connection.php 1 location
|
@@ 358-367 (lines=10) @@
|
355 |
|
$this->state = self::STATE_HEADERS; |
356 |
|
} |
357 |
|
|
358 |
|
if ($this->state === self::STATE_HEADERS) { |
359 |
|
if (!$this->httpReadHeaders()) { |
360 |
|
return; |
361 |
|
} |
362 |
|
if (!$this->httpProcessHeaders()) { |
363 |
|
$this->finish(); |
364 |
|
return; |
365 |
|
} |
366 |
|
$this->state = self::STATE_CONTENT; |
367 |
|
} |
368 |
|
if ($this->state === self::STATE_CONTENT) { |
369 |
|
$this->state = self::STATE_PREHANDSHAKE; |
370 |
|
} |