public function input($buffer, $connection)
    {
        $len = strlen($buffer);
        
        if ($this->max_packet_size >0 && $len >= $this->max_packet_size) {
            throw new \Exception($connection.' request packet size exceed max_packet_size ', Server::ERROR_LARGE_PACKET);
        }
        
        return $len;
    }