Server IP : 192.158.238.246 / Your IP : 18.116.14.133 Web Server : LiteSpeed System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64 User : jenniferflocom ( 1321) PHP Version : 8.1.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/alt/python37/lib64/python3.7/site-packages/psycopg2/__pycache__/ |
Upload File : |
B *��]� � @ s^ d Z ddlZddlmZ G dd� dej�ZG dd� de�ZG dd � d e�ZG d d� de�Z dS )z`Connection pooling for psycopg2 This module implements thread-safe (and not) connection pools. � N)� extensionsc @ s e Zd ZdS )� PoolErrorN)�__name__� __module__�__qualname__� r r �@/opt/alt/python37/lib64/python3.7/site-packages/psycopg2/pool.pyr s r c @ sF e Zd ZdZdd� Zddd�Zdd� Zdd d �Zddd �Zdd� Z dS )�AbstractConnectionPoolzGeneric key-based pooling code.c O s^ t |�| _t |�| _d| _|| _|| _g | _i | _i | _d| _ xt | j�D ]}| �� qJW dS )z�Initialize the connection pool. New 'minconn' connections are created immediately calling 'connfunc' with given parameters. The connection pool will support a maximum of about 'maxconn' connections. Fr N)�int�minconn�maxconn�closed�_args�_kwargs�_pool�_used�_rused�_keys�range�_connect)�selfr r �args�kwargs�ir r r �__init__&