Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gevent
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gevent
Commits
62a74d35
Commit
62a74d35
authored
Aug 13, 2009
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wsgi.py: remove server_event parameter from server()
parent
2610dd63
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
gevent/wsgi.py
gevent/wsgi.py
+9
-7
No files found.
gevent/wsgi.py
View file @
62a74d35
...
...
@@ -52,8 +52,8 @@ def format_date_time(timestamp):
class
Input
(
object
):
def
__init__
(
self
,
rfile
,
content_length
,
wfile
=
None
,
wfile_line
=
None
,
chunked_input
=
False
):
def
__init__
(
self
,
rfile
,
content_length
,
wfile
=
None
,
wfile_line
=
None
,
chunked_input
=
False
):
self
.
rfile
=
rfile
if
content_length
is
not
None
:
content_length
=
int
(
content_length
)
...
...
@@ -130,7 +130,7 @@ class Input(object):
class
HttpProtocol
(
BaseHTTPServer
.
BaseHTTPRequestHandler
):
protocol_version
=
'HTTP/1.1'
minimum_chunk_size
=
MINIMUM_CHUNK_SIZE
def
handle_one_request
(
self
):
if
self
.
server
.
max_http_version
:
self
.
protocol_version
=
self
.
server
.
max_http_version
...
...
@@ -341,6 +341,7 @@ class HttpProtocol(BaseHTTPServer.BaseHTTPRequestHandler):
class
Server
(
BaseHTTPServer
.
HTTPServer
):
def
__init__
(
self
,
socket
,
address
,
app
,
log
=
None
,
environ
=
None
,
max_http_version
=
None
,
protocol
=
HttpProtocol
,
minimum_chunk_size
=
None
):
self
.
outstanding_requests
=
0
self
.
socket
=
socket
...
...
@@ -379,10 +380,11 @@ class Server(BaseHTTPServer.HTTPServer):
self
.
log
.
write
(
message
+
'
\
n
'
)
def
server
(
sock
,
site
,
log
=
None
,
environ
=
None
,
max_size
=
None
,
max_http_version
=
DEFAULT_MAX_HTTP_VERSION
,
protocol
=
HttpProtocol
,
server_event
=
None
,
minimum_chunk_size
=
None
):
serv
=
Server
(
sock
,
sock
.
getsockname
(),
site
,
log
,
environ
=
None
,
max_http_version
=
max_http_version
,
protocol
=
protocol
,
minimum_chunk_size
=
minimum_chunk_size
)
if
server_event
is
not
None
:
server_event
.
send
(
serv
)
def
server
(
sock
,
site
,
log
=
None
,
environ
=
None
,
max_size
=
None
,
max_http_version
=
DEFAULT_MAX_HTTP_VERSION
,
protocol
=
HttpProtocol
,
minimum_chunk_size
=
None
):
serv
=
Server
(
sock
,
sock
.
getsockname
(),
site
,
log
,
environ
=
None
,
max_http_version
=
max_http_version
,
protocol
=
protocol
,
minimum_chunk_size
=
minimum_chunk_size
)
if
max_size
is
None
:
max_size
=
DEFAULT_MAX_SIMULTANEOUS_REQUESTS
pool
=
Pool
(
size
=
max_size
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment