Uname : Linux premium36.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Soft : LiteSpeed
Ip : 198.54.115.237
Port : 443
~
/
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
ssa
/
modules
/
__pycache__
[ HOME ]
Exec
Submit
File Name : processor.cpython-311.pyc
� 8Heh�$ � �" � d Z ddlZddlZddlZddlZddlZddlmZmZmZ ddl m Z mZmZ ddl mZmZ ddlmZmZ ddlmZ dd lmZ dd lmZ ddlmZ ddlmZ d dlmZmZm Z m!Z!m"Z"m#Z# d dl$m%Z% d dl&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)�Queue�Empty)�OperationalError� )� 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 ZdZdZdZd� fd� Zed� � � Zde fd�Z dd �Zdd�Zdd�Z d ed efd�Zddefd�Zd� Zd� Zeded efd�� � Zd� Zd� Zd� Zde d dfd�Zd� Zd� 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 | j �� � | _ t � � | _ t! | j �� � | _ t% � � | _ g | _ | � � � | � � � t/ j t. j | j � � t/ j t. j | j � � d S )N� req_processorzProcessor enabled: %sT��enabled)�engine)�super�__init__�logging� getLogger�logger�info�__package__r r r&