| Server IP : 46.245.81.90 / Your IP : 216.73.216.133 Web Server : Apache System : Linux server3ir.xdlhost.com 4.18.0-553.30.1.lve.el8.x86_64 #1 SMP Tue Dec 3 01:21:19 UTC 2024 x86_64 User : gmparts ( 1037) PHP Version : 8.1.34 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/cloudlinux/venv/lib/python3.11/site-packages/ssa/modules/__pycache__/ |
Upload File : |
�
t��g � � � d Z ddlZddlZddlZddlZddlmZmZmZ ddlm Z m
Z
mZ ddlm
Z
mZ ddlmZ ddlmZ dd lmZ dd
lmZ ddlmZmZmZmZmZmZ dd
lmZ ddl m!Z!m"Z"m#Z# e! G d� de� � � � Z$dS )z-
This module contains RequestProcessor class
� N)�datetime� timedelta�timezone)�Thread�RLock�current_thread)�Callable�Any� )�
AutoTracer)�Common)�
DecisionMaker)�StatisticsSender� )�
session_scope�setup_database�
RequestResult�cleanup_old_data�restore_database�is_malformed_database)�SSAError)� singleton� url_split�switch_schedstatsc �� � � e Zd ZdZdZd� fd� Zed� � � Zdefd�Z dd �Z
dd
�Zdede
fd�Zddefd�Zd� Zd� Zededefd�� � Zd� Zdd�Zdeddfd�Z� xZS )�RequestProcessorz^
SSA Request processor implementation.
Only one instance is allowed to be created
�d Nc �� �� t � � � � � t j d� � | _ | j � dt � � t d�� � |r|n
t � � | _ t � � | _ t |�� � | _
t � � | _ t! |�� � | _ | � � � g | _ d S )N�
req_processorzProcessor enabled: %sT��enabled)�engine)�super�__init__�logging� getLogger�logger�info�__package__r r r"