Python cherrypy.wsgiserver.CP_fileobject() Examples
The following are 15
code examples of cherrypy.wsgiserver.CP_fileobject().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
cherrypy.wsgiserver
, or try the search function
.
Example #1
Source File: ssl_builtin.py From SalesforceXyTools with Apache License 2.0 | 5 votes |
def makefile(self, sock, mode='r', bufsize=DEFAULT_BUFFER_SIZE): return wsgiserver.CP_fileobject(sock, mode, bufsize)
Example #2
Source File: ssl_pyopenssl.py From SalesforceXyTools with Apache License 2.0 | 5 votes |
def makefile(self, sock, mode='r', bufsize=-1): if SSL and isinstance(sock, SSL.ConnectionType): timeout = sock.gettimeout() f = SSL_fileobject(sock, mode, bufsize) f.ssl_timeout = timeout return f else: return wsgiserver.CP_fileobject(sock, mode, bufsize)
Example #3
Source File: ssl_builtin.py From nightmare with GNU General Public License v2.0 | 5 votes |
def makefile(self, sock, mode='r', bufsize=-1): return wsgiserver.CP_fileobject(sock, mode, bufsize)
Example #4
Source File: ssl_pyopenssl.py From nightmare with GNU General Public License v2.0 | 5 votes |
def makefile(self, sock, mode='r', bufsize=-1): if SSL and isinstance(sock, SSL.ConnectionType): timeout = sock.gettimeout() f = SSL_fileobject(sock, mode, bufsize) f.ssl_timeout = timeout return f else: return wsgiserver.CP_fileobject(sock, mode, bufsize)
Example #5
Source File: ssl_builtin.py From Hatkey with GNU General Public License v3.0 | 5 votes |
def makefile(self, sock, mode='r', bufsize=DEFAULT_BUFFER_SIZE): return wsgiserver.CP_fileobject(sock, mode, bufsize)
Example #6
Source File: ssl_pyopenssl.py From Hatkey with GNU General Public License v3.0 | 5 votes |
def makefile(self, sock, mode='r', bufsize=-1): if SSL and isinstance(sock, SSL.ConnectionType): timeout = sock.gettimeout() f = SSL_fileobject(sock, mode, bufsize) f.ssl_timeout = timeout return f else: return wsgiserver.CP_fileobject(sock, mode, bufsize)
Example #7
Source File: ssl_builtin.py From opsbro with MIT License | 5 votes |
def makefile(self, sock, mode='r', bufsize=DEFAULT_BUFFER_SIZE): return wsgiserver.CP_fileobject(sock, mode, bufsize)
Example #8
Source File: ssl_pyopenssl.py From opsbro with MIT License | 5 votes |
def makefile(self, sock, mode='r', bufsize=-1): if SSL and isinstance(sock, SSL.ConnectionType): timeout = sock.gettimeout() f = SSL_fileobject(sock, mode, bufsize) f.ssl_timeout = timeout return f else: return wsgiserver.CP_fileobject(sock, mode, bufsize)
Example #9
Source File: ssl_builtin.py From bokken with GNU General Public License v2.0 | 5 votes |
def makefile(self, sock, mode='r', bufsize=-1): return wsgiserver.CP_fileobject(sock, mode, bufsize)
Example #10
Source File: ssl_pyopenssl.py From bokken with GNU General Public License v2.0 | 5 votes |
def makefile(self, sock, mode='r', bufsize=-1): if SSL and isinstance(sock, SSL.ConnectionType): timeout = sock.gettimeout() f = SSL_fileobject(sock, mode, bufsize) f.ssl_timeout = timeout return f else: return wsgiserver.CP_fileobject(sock, mode, bufsize)
Example #11
Source File: ssl_builtin.py From cosa-nostra with GNU General Public License v3.0 | 5 votes |
def makefile(self, sock, mode='r', bufsize=-1): return wsgiserver.CP_fileobject(sock, mode, bufsize)
Example #12
Source File: ssl_pyopenssl.py From cosa-nostra with GNU General Public License v3.0 | 5 votes |
def makefile(self, sock, mode='r', bufsize=-1): if SSL and isinstance(sock, SSL.ConnectionType): timeout = sock.gettimeout() f = SSL_fileobject(sock, mode, bufsize) f.ssl_timeout = timeout return f else: return wsgiserver.CP_fileobject(sock, mode, bufsize)
Example #13
Source File: ssl_pyopenssl.py From bazarr with GNU General Public License v3.0 | 5 votes |
def makefile(self, sock, mode='r', bufsize=-1): if SSL and isinstance(sock, SSL.ConnectionType): timeout = sock.gettimeout() f = SSL_fileobject(sock, mode, bufsize) f.ssl_timeout = timeout return f else: return wsgiserver.CP_fileobject(sock, mode, bufsize)
Example #14
Source File: ssl_builtin.py From moviegrabber with GNU General Public License v3.0 | 5 votes |
def makefile(self, sock, mode='r', bufsize=DEFAULT_BUFFER_SIZE): return wsgiserver.CP_fileobject(sock, mode, bufsize)
Example #15
Source File: ssl_pyopenssl.py From moviegrabber with GNU General Public License v3.0 | 5 votes |
def makefile(self, sock, mode='r', bufsize=-1): if SSL and isinstance(sock, SSL.ConnectionType): timeout = sock.gettimeout() f = SSL_fileobject(sock, mode, bufsize) f.ssl_timeout = timeout return f else: return wsgiserver.CP_fileobject(sock, mode, bufsize)