Linux server.edchosting.com 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64
LiteSpeed
Server IP : 75.98.162.185 & Your IP : 216.73.216.163
Domains :
Cant Read [ /etc/named.conf ]
User : goons4good
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib /
python2.7 /
site-packages /
urllib3 /
util /
Delete
Unzip
Name
Size
Permission
Date
Action
__init__.py
486
B
-rw-r--r--
2014-08-06 14:38
__init__.pyc
787
B
-rw-r--r--
2019-08-08 22:16
__init__.pyo
787
B
-rw-r--r--
2019-08-08 22:16
connection.py
3.22
KB
-rw-r--r--
2015-02-25 18:18
connection.pyc
2.87
KB
-rw-r--r--
2019-08-08 22:16
connection.pyo
2.87
KB
-rw-r--r--
2019-08-08 22:16
request.py
2.04
KB
-rw-r--r--
2014-08-06 14:38
request.pyc
2.09
KB
-rw-r--r--
2019-08-08 22:16
request.pyo
2.09
KB
-rw-r--r--
2019-08-08 22:16
response.py
566
B
-rw-r--r--
2014-09-13 14:18
response.pyc
632
B
-rw-r--r--
2019-08-08 22:16
response.pyo
632
B
-rw-r--r--
2019-08-08 22:16
retry.py
10.18
KB
-rw-r--r--
2019-08-08 22:16
retry.pyc
9.86
KB
-rw-r--r--
2019-08-08 22:16
retry.pyo
9.86
KB
-rw-r--r--
2019-08-08 22:16
ssl_.py
8.63
KB
-rw-r--r--
2015-02-25 18:18
ssl_.pyc
7.98
KB
-rw-r--r--
2019-08-08 22:16
ssl_.pyo
7.98
KB
-rw-r--r--
2019-08-08 22:16
timeout.py
9.32
KB
-rw-r--r--
2014-08-06 14:38
timeout.pyc
9.32
KB
-rw-r--r--
2019-08-08 22:16
timeout.pyo
9.32
KB
-rw-r--r--
2019-08-08 22:16
url.py
5.92
KB
-rw-r--r--
2019-08-08 22:16
url.pyc
6.05
KB
-rw-r--r--
2019-08-08 22:16
url.pyo
6.05
KB
-rw-r--r--
2019-08-08 22:16
Save
Rename
import socket try: from select import poll, POLLIN except ImportError: # `poll` doesn't exist on OSX and other platforms poll = False try: from select import select except ImportError: # `select` doesn't exist on AppEngine. select = False def is_connection_dropped(conn): # Platform-specific """ Returns True if the connection is dropped and should be closed. :param conn: :class:`httplib.HTTPConnection` object. Note: For platforms like AppEngine, this will always return ``False`` to let the platform handle connection recycling transparently for us. """ sock = getattr(conn, 'sock', False) if sock is False: # Platform-specific: AppEngine return False if sock is None: # Connection already closed (such as by httplib). return True if not poll: if not select: # Platform-specific: AppEngine return False try: return select([sock], [], [], 0.0)[0] except socket.error: return True # This version is better on platforms that support it. p = poll() p.register(sock, POLLIN) for (fno, ev) in p.poll(0.0): if fno == sock.fileno(): # Either data is buffered (bad), or the connection is dropped. return True # This function is copied from socket.py in the Python 2.7 standard # library test suite. Added to its signature is only `socket_options`. def create_connection(address, timeout=socket._GLOBAL_DEFAULT_TIMEOUT, source_address=None, socket_options=None): """Connect to *address* and return the socket object. Convenience function. Connect to *address* (a 2-tuple ``(host, port)``) and return the socket object. Passing the optional *timeout* parameter will set the timeout on the socket instance before attempting to connect. If no *timeout* is supplied, the global default timeout setting returned by :func:`getdefaulttimeout` is used. If *source_address* is set it must be a tuple of (host, port) for the socket to bind as a source address before making the connection. An host of '' or port 0 tells the OS to use the default. """ host, port = address err = None for res in socket.getaddrinfo(host, port, 0, socket.SOCK_STREAM): af, socktype, proto, canonname, sa = res sock = None try: sock = socket.socket(af, socktype, proto) # If provided, set socket level options before connecting. # This is the only addition urllib3 makes to this function. _set_socket_options(sock, socket_options) if timeout is not socket._GLOBAL_DEFAULT_TIMEOUT: sock.settimeout(timeout) if source_address: sock.bind(source_address) sock.connect(sa) return sock except socket.error as _: err = _ if sock is not None: sock.close() sock = None if err is not None: raise err else: raise socket.error("getaddrinfo returns an empty list") def _set_socket_options(sock, options): if options is None: return for opt in options: sock.setsockopt(*opt)