ok
Direktori : /opt/cloudlinux/venv/lib/python3.11/site-packages/aiohttp/__pycache__/ |
Current File : //opt/cloudlinux/venv/lib/python3.11/site-packages/aiohttp/__pycache__/worker.cpython-311.pyc |
� �܋f � � � d Z ddlZddlZddlZddlZddlZddlmZ ddlm Z m Z mZmZm Z ddlmZ ddlmZ ddlmZ dd lmZ dd lmZ ddlmZ ddlZej Zn# e$ r dZeZY nw xY wdZ G d � dej � � Z! G d� de!� � Z"dS )z%Async gunicorn worker for aiohttp.web� N)� FrameType)�Any� Awaitable�Callable�Optional�Union)�AccessLogFormat)�base)�web� )� set_result)�Application)�AccessLogger)�GunicornWebWorker�GunicornUVLoopWebWorkerc � � � e Zd Zej Zej Zde de ddf� fd�Z d� fd�Zdd�Zdd�Z dd �Z dded ddfd�Zdd �Zdedee ddfd�Zdedee ddfd�Zede ddfd�� � Zdedefd�Z� xZS )r �args�kw�returnNc �d �� t � � j |i |�� d | _ d| _ d | _ d S �Nr )�super�__init__�_task� exit_code�_notify_waiter)�selfr r � __class__s ��a/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib64/python3.11/site-packages/aiohttp/worker.pyr zGunicornWebWorker.__init__% s; �� ������$�%�"�%�%�%�37�� ����>B����� c �� �� t j � � � � � t j � � | _ t j | j � � t � � � � � d S �N)�asyncio�get_event_loop�close�new_event_loop�loop�set_event_loopr �init_process)r r s �r r) zGunicornWebWorker.init_process, s] �� ��� � �&�&�(�(�(��*�,�,�� ���t�y�)�)�)� ���������r c �� � | j � | � � � � � | _ | j � | j � � n*# t $ r | j � d� � Y nw xY w| j � | j � � � � � | j � � � t j | j � � d S )NzException in gunicorn worker) r'