�
E�g� � �h � d dl Z d dlmZmZ ddlmZ ddlmZ ddlm Z G d� de j
� � ZdS ) � N)�Optional�cast� )�ClientConnectionResetError)�
set_exception)�tcp_nodelayc �� � e Zd ZdZdej ddfd�Zedefd�� � Z edefd�� � Z
dd�Zdd �Zdd
�Z
dd�Zdej ddfd
�Zdee ddfd�Zdd�ZdS )�BaseProtocol)�_loop�_paused�
_drain_waiter�_connection_lost�_reading_paused� transport�loop�returnNc �L � || _ d| _ d | _ d| _ d | _ d S �NF)r r r
r r )�selfr s �e/home/asafur/pinokio/api/open-webui.git/app/env/lib/python3.11/site-packages/aiohttp/base_protocol.py�__init__zBaseProtocol.__init__ s+ � �04��
����=A���$���6:����� c � � | j duS )z&Return True if the connection is open.N)r �r s r � connectedzBaseProtocol.connected s � � �~�T�)�)r c � � | j S )N�r r s r �writing_pausedzBaseProtocol.writing_paused s
� ��|�r c �&