https://t.me/AnonymousX5
Server : Apache
System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64
User : njnconst ( 1116)
PHP Version : 8.4.18
Disable Function : NONE
Directory :  /usr/lib64/python2.7/site-packages/django/core/servers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/lib64/python2.7/site-packages/django/core/servers/fastcgi.pyc
�
r�\c@s�dZddlZddlZddlmZdZdgZidd6dd6dd	6dd
6dd6dd
6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6ZdeZ	dd�Z
gd�Zed kr�eej
d!�ndS("s�
FastCGI (or SCGI, or AJP1.3 ...) server that implements the WSGI protocol.

Uses the flup python package: http://www.saddi.com/software/flup/

This is a adaptation of the flup package to add FastCGI server support
to run Django apps from Web servers that support the FastCGI protocol.
This module can be run standalone or from the django-admin / manage.py
scripts using the "runfcgi" directive.

Run with the extra option "help" for a list of additional options you can
pass to this server.
i����N(t	importlibs0.1t
runfastcgitfcgitprotocolthosttporttsockettforktmethodt	daemonizet/tworkdirtpidfileitmaxspareitminsparei2tmaxchildrenitmaxrequeststdebugtoutlogterrlogtumasks�
  Run this project as a fastcgi (or some other protocol supported
  by flup) application. To do this, the flup package from
  http://www.saddi.com/software/flup/ is required.

   runfcgi [options] [fcgi settings]

Optional Fcgi settings: (setting=value)
  protocol=PROTOCOL    fcgi, scgi, ajp, ... (default %(protocol)s)
  host=HOSTNAME        hostname to listen on.
  port=PORTNUM         port to listen on.
  socket=FILE          UNIX socket to listen on.
  method=IMPL          prefork or threaded (default %(method)s).
  maxrequests=NUMBER   number of requests a child handles before it is
                       killed and a new child is forked (0 = no limit).
  maxspare=NUMBER      max number of spare processes / threads (default %(maxspare)s).
  minspare=NUMBER      min number of spare processes / threads (default %(minspare)s).
  maxchildren=NUMBER   hard limit number of processes / threads (default %(maxchildren)s).
  daemonize=BOOL       whether to detach from terminal.
  pidfile=FILE         write the spawned process-id to this file.
  workdir=DIRECTORY    change to this directory when daemonizing (default %(workdir)s).
  debug=BOOL           set to true to enable flup tracebacks.
  outlog=FILE          write stdout to this file.
  errlog=FILE          write stderr to this file.
  umask=UMASK          umask to use when daemonizing, in octal notation (default 022).

Examples:
  Run a "standard" fastcgi process on a file-descriptor
  (for Web servers which spawn your processes for you)
    $ manage.py runfcgi method=threaded

  Run a scgi server on a TCP host/port
    $ manage.py runfcgi protocol=scgi method=prefork host=127.0.0.1 port=8025

  Run a fastcgi server on a UNIX domain socket (posix platforms only)
    $ manage.py runfcgi method=prefork socket=/tmp/fcgi.sock

  Run a fastCGI as a daemon and write the spawned PID in a file
    $ manage.py runfcgi socket=/tmp/fcgi.sock method=prefork \
        daemonize=true pidfile=/var/run/django-fcgi.pid

cCstGH|r|GHntS(N(tFASTCGI_HELPtFalse(tmessage((s=/tmp/pip-install-XxeQeY/django/django/core/servers/fastcgi.pytfastcgi_helpTsc
Ks'tj�}|j|�xR|D]J}d|krM|jdd�\}}n
|t}}|||j�<q Wd|kr�t�Syddl}Wnhtk
r�}t	j
jd|�t	j
jd�t	j
jd�t	j
jd�t	j
jd	�tSXd
|d}|dd:krqit
|d�d6t
|d�d6t
|d�d6t
|d�d6}	|d7}nV|dd;kr�it
|d�d6t
|d�d6t
|d�d6}	n
td�S|ddk	|	d<y#tjd|d�}
|
j}Wntk
rd|GHtSXdd lm}|d!rl|d"rl|d#rl|d!t
|d"�f|	d$<ni|d#r�|d!r�|d"r�|d#|	d$<n8|d#r�|d!r�|d"r�d|	d$<n
td%�S|d&dkr�|	d$dk	}
nH|d&j�d<krt}
n)|d&j�d=kr6t}
n
td-�Si}|d.ra|d.|d/<n|d0r||d0|d1<n|d2r�t
|d2d3�|d2<n|
r�dd4lm}|d5|d6|�n|d7r
t|d7d8��}|jd9tj��WdQXn||�|	�j�dS(>Nt=ithelpi����s
ERROR: %s
s;  Unable to load the flup package.  In order to run django
s;  as a FastCGI application, you will need to get flup from
s:  http://www.saddi.com/software/flup/   If you've already
sA  installed flup, then make sure you have it in your PYTHONPATH.
sserver.RRtpreforkRR
tmaxSpareRtminSpareRtmaxChildrenRtmaxRequestst_forktthreadtthreadedt
maxThreadss7ERROR: Implementation must be one of prefork or thread.Rs.%stflupsCan't import flup.(tget_internal_wsgi_applicationRRRtbindAddresss*Invalid combination of host, port, socket.R	ttruetyestttfalsetnotfs.ERROR: Invalid option for daemonize parameter.Rtout_logRterr_logRi(t
become_daemontour_home_dirRRtws%d
(Rsfork(sthreadsthreaded(struesyesR)(sfalsesnoR,(tFASTCGI_OPTIONStcopytupdatetsplittTruetlowerRR$tImportErrortsyststderrtwriteRtinttNoneRt
import_modulet
WSGIServert	Exceptiontdjango.core.servers.basehttpR%tdjango.utils.daemonizeR/topentostgetpidtrun(targsettkwargstoptionstxtktvR$tetflup_modulet	wsgi_optstmoduleR?R%R	t
daemon_kwargsR/tfp((s=/tmp/pip-install-XxeQeY/django/django/core/servers/fastcgi.pyRZs�






	! !

		




 t__main__i(t__doc__RDR9tdjango.utilsRt__version__t__all__R=R2RRRt__name__targv(((s=/tmp/pip-install-XxeQeY/django/django/core/servers/fastcgi.pyt<module>
s6	
,
^

https://t.me/AnonymousX5 - 2025