This commit is contained in:
Marcel Pociot committed 2020-04-17 16:46:15 +02:00
1 parent 60727ac86e
commit 81d8311995
2 files changed
+9 -9

No files matched your search

+8 -9
View File
@@ -35,16 +35,15 @@ class TunnelMessage implements Message
public function respond()
{
$clientConnection = $this->connectionManager->findConnectionForSubdomain($this->detectSubdomain());
if (is_null($clientConnection)) {
// $this->connection->send(\GuzzleHttp\Psr7\str(new Response(404, [], 'Not found')));
// $this->connection->close();
// dump("No clinet connection");
return;
}
if ($this->hasBufferedAllData()) {
$clientConnection = $this->connectionManager->findConnectionForSubdomain($this->detectSubdomain());
if (is_null($clientConnection)) {
$this->connection->send(\GuzzleHttp\Psr7\str(new Response(404, [], 'Not found')));
$this->connection->close();
return;
}
$this->copyDataToClient($clientConnection);
}
}