@@ 230-234 (lines=5) @@ | ||
227 | public function handshake() |
|
228 | { |
|
229 | $this->route = $this->pool->getRoute($this->server['DOCUMENT_URI'], $this); |
|
230 | if (!$this->route) { |
|
231 | Daemon::$process->log(get_class($this) . '::' . __METHOD__ . ' : Cannot handshake session for client "' . $this->addr . '"'); |
|
232 | $this->finish(); |
|
233 | return false; |
|
234 | } |
|
235 | ||
236 | if (method_exists($this->route, 'onBeforeHandshake')) { |
|
237 | $this->route->onWakeup(); |
|
@@ 261-265 (lines=5) @@ | ||
258 | } |
|
259 | } |
|
260 | ||
261 | if (!$this->sendHandshakeReply($extraHeaders)) { |
|
262 | Daemon::$process->log(get_class($this) . '::' . __METHOD__ . ' : Handshake protocol failure for client "' . $this->addr . '"'); |
|
263 | $this->finish(); |
|
264 | return false; |
|
265 | } |
|
266 | ||
267 | $this->handshaked = true; |
|
268 | $this->headers_sent = true; |