| Server IP : 54.37.205.81 / Your IP : 216.73.216.76 Web Server : nginx/1.22.1 System : Linux vps-249481fa 6.1.0-50-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.176-1 (2026-07-02) x86_64 User : debian ( 1000) PHP Version : 8.2.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/tornado/test/__pycache__/ |
Upload File : |
�
��b( � �� � d dl Z d dlZd dlZd dlZd dlZd dlmZ d dlmZ d dl m
Z
d dlmZ d dl
mZ d dlmZmZmZmZ d dlmZ G d � d
e� � Ze G d� dej � � � � ZdS )
� N)�gen)�IOStream)�app_log)� TCPServer)�
skipIfNonUnix)�
AsyncTestCase� ExpectLog�bind_unused_port�gen_test)�Tuplec �V � e Zd Zed� � � Zed� � � Zd� Zed� � � ZdS )�
TCPServerTestc # � K � G d� dt � � }d x}} t � � \ }} |� � }|� |� � t t j � � � � }t t d� � 5 |� d|f� � V � |� d� � V � |� � � V � t j V � d d d � � n# 1 swxY w Y |�|� � � |�|�
� � d S d S # |�|� � � |�|�
� � w w xY w)Nc �. � e Zd Zej d� � � ZdS )�FTCPServerTest.test_handle_stream_coroutine_logging.<locals>.TestServerc 3 � K � |� t d� � � � V � |� � � ddz d S )N� hello� r )�
read_bytes�len�close��self�stream�addresss �=/usr/lib/python3/dist-packages/tornado/test/tcpserver_test.py�
handle_streamzTTCPServerTest.test_handle_stream_coroutine_logging.<locals>.TestServer.handle_stream s@ � � � ��'�'��H�
�
�6�6�6�6�6��������A����� N��__name__�
__module__�__qualname__r � coroutiner � r r �
TestServerr s/ � � � � � �
�]�
�
� �]�
�
�
r r% zException in callback� localhostr )r r
�
add_socketr �socketr r �connect�write�read_until_closer �moment�stopr )r r% �server�client�sock�ports r �$test_handle_stream_coroutine_loggingz2TCPServerTest.test_handle_stream_coroutine_logging s� � � � � � � � � �� � � � ���� �)�+�+�J�D�$��Z�\�\�F����d�#�#�#��f�m�o�o�.�.�F��7�$;�<�<�
!�
!��n�n�k�4�%8�9�9�9�9�9��l�l�8�,�,�,�,�,��-�-�/�/�/�/�/��j� � � �
!�
!�
!�
!�
!�
!�
!�
!�
!�
!�
!����
!�
!�
!�
!� �!����
�
�
��!��������� "�!�� �!����
�
�
��!�������� "���s1 �A%D � AC!�D �!C%�%D �(C%�)D �/Ec # � K � G d� dt � � }t � � \ }} |� � }|� |� � t t j � � � � }|� d|f� � V � |� � � V �}| � |d� � |� � � |� � � d S )Nc � � e Zd Zd� ZdS )�ETCPServerTest.test_handle_stream_native_coroutine.<locals>.TestServerc � �\ K � |� d� � |� � � d S )N� data)r* r r s r r zSTCPServerTest.test_handle_stream_native_coroutine.<locals>.TestServer.handle_stream3 s) � � � ����W�%�%�%��������r N)r r! r"