Transporter::closeTimeoutStream PHP Method

closeTimeoutStream() private method

private closeTimeoutStream ( $o, $index )
    private function closeTimeoutStream($o, $index)
    {
        foreach ($o->requests as $stream_id => $request) {
            if ($request->index == $index) {
                unset($o->requests[$stream_id]);
                if (!$this->client->fullDuplex) {
                    $this->removeStreamById($stream_id, $o->writepool);
                }
            }
        }
        foreach ($o->responses as $stream_id => $response) {
            if ($response->index == $index) {
                unset($o->responses[$stream_id]);
                if (!$this->client->fullDuplex) {
                    $this->removeStreamById($stream_id, $o->readpool);
                }
            }
        }
    }