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
|
@@ 367-376 (lines=10) @@
|
364 |
|
$this->state = self::STATE_HEADERS; |
365 |
|
} |
366 |
|
|
367 |
|
if ($this->state === self::STATE_HEADERS) { |
368 |
|
if (!$this->httpReadHeaders()) { |
369 |
|
return; |
370 |
|
} |
371 |
|
if (!$this->httpProcessHeaders()) { |
372 |
|
$this->finish(); |
373 |
|
return; |
374 |
|
} |
375 |
|
$this->state = self::STATE_CONTENT; |
376 |
|
} |
377 |
|
if ($this->state === self::STATE_CONTENT) { |
378 |
|
$this->state = self::STATE_PREHANDSHAKE; |
379 |
|
} |