403Webshell
Server IP : 217.160.0.135  /  Your IP : 216.73.217.85
Web Server : Apache
System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64
User : sws1074145052 ( 1074145052)
PHP Version : 8.3.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/flup/server/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/flup/server/__pycache__/fcgi_fork.cpython-311.pyc
�

#H\a���f�dZdZdZddlZddlmZmZmZmZm	Z	ddl
mZdgZGd�dee��Z
dS)	ax
fcgi - a FastCGI/WSGI gateway.

For more information about FastCGI, see <http://www.fastcgi.com/>.

For more information about the Web Server Gateway Interface, see
<http://www.python.org/peps/pep-0333.html>.

Example usage:

  #!/usr/bin/env python
  from myapplication import app # Assume app is your WSGI application object
  from fcgi import WSGIServer
  WSGIServer(app).run()

See the documentation for WSGIServer for more information.

On most platforms, fcgi will fallback to regular CGI behavior if run in a
non-FastCGI context. If you want to force CGI behavior, set the environment
variable FCGI_FORCE_CGI to "Y" or "y".
zAllan Saddi <allan@saddi.com>z
$Revision$�N)�BaseFCGIServer�FCGI_RESPONDER�FCGI_MAX_CONNS�
FCGI_MAX_REQS�FCGI_MPXS_CONNS)�
PreforkServer�
WSGIServerc�6�eZdZdZdddddefdfd�Zd�Zd�ZdS)r	z|
    FastCGI server that supports the Web Server Gateway Interface. See
    <http://www.python.org/peps/pep-0333.html>.
    NFTc	
��tj|||dd||||||���dD]	}
|
|	vr|	|
=�
tj|f|j|fd�|	��	ddl}	|�|j��d}|�|j��d}
t|
|��}
n0#t$r#|�|j��d}
YnwxYwn#t$rd}
YnwxYw|
}t|
t|tdi|_dS)	a�
        environ, if present, must be a dictionary-like object. Its
        contents will be copied into application's environ. Useful
        for passing application-specific variables.

        bindAddress, if present, must either be a string or a 2-tuple. If
        present, run() will open its own listening socket. You would use
        this if you wanted to run your application as an 'external' FastCGI
        app. (i.e. the webserver would no longer be responsible for starting
        your app) If a string, it will be interpreted as a filename and a UNIX
        socket will be opened. If a tuple, the first element, a string,
        is the interface name/IP to bind to, and the second element (an int)
        is the port number.
        FT)	�environ�
multithreaded�multiprocess�bindAddress�umask�multiplexed�debug�roles�forceCGI)r
r�jobClass�jobArgs)rrrN�d)r�__init__r�_connectionClass�resource�	getrlimit�RLIMIT_NPROC�
RLIMIT_NOFILE�min�AttributeError�ImportErrorrrr�
capability)�self�applicationrrrrrrr�kw�keyr�maxProcs�maxConns�maxReqss               �7/usr/lib/python3/dist-packages/flup/server/fcgi_fork.pyrzWSGIServer.__init__Asr��"	���k�(/�.3�-1�,7�&+�,7�&+�&+�)1�		3�		3�		3�		3�L�	�	�C��b�y�y��s�G����t�	6�d�.C�(,�w�	6�	6�24�	6�	6�	6�	��O�O�O�
I�#�-�-�h�.C�D�D�Q�G��#�-�-�h�.D�E�E�a�H���x��2�2����!�
I�
I�
I�#�-�-�h�.D�E�E�a�H����
I�������	�	�	��H�H�H�	�������H��7��Q�����s7�C�
AB�C�*C�C�
C�C�C�Cc�X�|jdup!t|��dko|d|jvS)N�r)�_web_server_addrs�len)r"�addrs  r)�_isClientAllowedzWSGIServer._isClientAllowedus7���%��-�F��D�	�	�Q��D�4��7�d�.D�#D�	F�c�*�tj�d��|_|j�)d�|j�d��D��|_|���}t
j||��}|�|��|S)z�
        The main loop. Exits on SIGHUP, SIGINT, SIGTERM. Returns True if
        SIGHUP was received, False otherwise.
        �FCGI_WEB_SERVER_ADDRSNc�6�g|]}|�����S�)�strip)�.0�xs  r)�
<listcomp>z"WSGIServer.run.<locals>.<listcomp>�s ��%[�%[�%[�A�a�g�g�i�i�%[�%[�%[r0�,)	�osr�getr,�split�_setupSocketr�run�_cleanupSocket)r"�sock�rets   r)r>zWSGIServer.runys���
"$����0G�!H�!H����!�-�%[�%[��9O�9U�9U�VY�9Z�9Z�%[�%[�%[�D�"�� � �"�"�����d�+�+�����D�!�!�!��
r0)�__name__�
__module__�__qualname__�__doc__rrr/r>r4r0r)r	r	<sj��������-1�!��5��N�#4�u�2�2�2�2�hF�F�F�����r0)rE�
__author__�__version__r:�flup.server.fcgi_baserrrrr�flup.server.preforkserverr�__all__r	r4r0r)�<module>rKs���6��,-�
���	�	�	�	�4�4�4�4�4�4�4�4�4�4�4�4�4�4�3�3�3�3�3�3��.��L�L�L�L�L���L�L�L�L�Lr0

Youez - 2016 - github.com/yon3zu
LinuXploit