File: //lib/python3.9/site-packages/dns/quic/__pycache__/_asyncio.cpython-39.pyc
a
�M�e� � @ s� d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlZd dl Z
d dlZ
d dlZ
d dl
mZmZmZmZmZ G dd� de�ZG dd� de�ZG dd� de�ZdS ) � N)�QUIC_MAX_DATAGRAM�AsyncQuicConnection�AsyncQuicManager�BaseQuicStream�
UnexpectedEOFc s` e Zd Z� fdd�Zdd� Zdd� Zddd �Zddd�Zd
d� Zdd� Z dd� Z
dd� Z� ZS )�AsyncioQuicStreamc s t � �||� t�� | _d S �N)�super�__init__�asyncio� Condition�_wake_up)�self�
connection� stream_id�� __class__� �5/usr/lib/python3.9/site-packages/dns/quic/_asyncio.pyr
s zAsyncioQuicStream.__init__c � sN | j 4 I d H �& | j �� I d H W d �I d H qJ1 I d H s@0 Y d S r )r
�wait�r r r r �_wait_for_wake_up s z#AsyncioQuicStream._wait_for_wake_upc � sb | � |�}| j�|�rd S || _zt�| �� |�I d H W n tyT tj j
�Y n0 d| _q d S )Nr )Z_timeout_from_expiration�_bufferZhaveZ
_expectingr �wait_forr �TimeoutError�dns� exception�Timeout)r �amount�
expiration�timeoutr r r r "