Server IP : 209.38.156.173 / Your IP : 216.73.216.122 [ Web Server : Apache/2.4.52 (Ubuntu) System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.1.2-1ubuntu2.22 Disable Function : NONE Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/twisted/test/__pycache__/ |
Upload File : |
o �b�2 � @ s d Z ddlZddlZddlZzddlZW n ey dZY nw ddlmZ ddlm Z m Z ddlmZm Z ddlmZmZ ddlmZmZmZmZmZmZmZmZmZmZmZ ddlmZ dd lm Z dd l!m"Z" ee j#�$e � d�G dd � d e"��Z%ee j#�$e � d�G dd� de"��Z&dS )z Whitebox tests for TCP APIs. � N)�skipIf)� interfaces�reactor)� gatherResults� maybeDeferred)�Protocol� ServerFactory)�_ACCEPT_ERRORS�EAGAIN�ECONNABORTED�EINPROGRESS�EMFILE�ENFILE�ENOBUFS�ENOMEM�EPERM�EWOULDBLOCK�Port)�log)�platform)�TestCasez?This test only applies to reactors that implement IReactorFDsetc @ sF e Zd ZdZdZdd� Zdd� Zdd� Zee � � d kd �dd� �Zd S )�PlatformAssumptionsTestsz4 Test assumptions about platform behaviors. i c C s` g | _ td ur.ddlm} t|� �d }t�tj�| _t�tj|| jd f� |d | _ d S d S )Nr )�_listOpenFDs� � �d ) �openSockets�resource�twisted.internet.processr �len� getrlimit� RLIMIT_NOFILE�originalFileLimit� setrlimit�socketLimit)�selfr �newLimit� r'