diff options
author | Andrew Dolgov <[email protected]> | 2023-10-20 17:12:29 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2023-10-20 21:13:39 +0300 |
commit | cdd7ad020e165fe680703b6d3319b908b682fb7a (patch) | |
tree | b51eb09b7b4587e8fbc5624ac8d88d28cfcd0b04 /vendor/packaged/thrift/src/Server/TSimpleServer.php | |
parent | 45a9ff0c88cbd33892ff16ab837e9059937d656e (diff) |
jaeger-client -> opentelemetry
Diffstat (limited to 'vendor/packaged/thrift/src/Server/TSimpleServer.php')
-rw-r--r-- | vendor/packaged/thrift/src/Server/TSimpleServer.php | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/vendor/packaged/thrift/src/Server/TSimpleServer.php b/vendor/packaged/thrift/src/Server/TSimpleServer.php deleted file mode 100644 index 4c1dda5a5..000000000 --- a/vendor/packaged/thrift/src/Server/TSimpleServer.php +++ /dev/null @@ -1,60 +0,0 @@ -<?php - -namespace Thrift\Server; - -use Thrift\Exception\TTransportException; - -/** - * Simple implemtation of a Thrift server. - * - * @package thrift.server - */ -class TSimpleServer extends TServer -{ - /** - * Flag for the main serving loop - * - * @var bool - */ - private $stop_ = false; - - /** - * Listens for new client using the supplied - * transport. It handles TTransportExceptions - * to avoid timeouts etc killing it - * - * @return void - */ - public function serve() - { - $this->transport_->listen(); - - while (!$this->stop_) { - try { - $transport = $this->transport_->accept(); - - if ($transport != null) { - $inputTransport = $this->inputTransportFactory_->getTransport($transport); - $outputTransport = $this->outputTransportFactory_->getTransport($transport); - $inputProtocol = $this->inputProtocolFactory_->getProtocol($inputTransport); - $outputProtocol = $this->outputProtocolFactory_->getProtocol($outputTransport); - while ($this->processor_->process($inputProtocol, $outputProtocol)) { - } - } - } catch (TTransportException $e) { - } - } - } - - /** - * Stops the server running. Kills the transport - * and then stops the main serving loop - * - * @return void - */ - public function stop() - { - $this->transport_->close(); - $this->stop_ = true; - } -} |