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
58184039
Commit
58184039
authored
Jun 22, 2010
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BaseServer: rename 'spawn' attribute to '_spawn'
to avoid confusion with Greenlet's spawn() classmethod
parent
0021cebd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
gevent/baseserver.py
gevent/baseserver.py
+5
-5
gevent/http.py
gevent/http.py
+1
-1
gevent/server.py
gevent/server.py
+1
-1
No files found.
gevent/baseserver.py
View file @
58184039
...
...
@@ -27,7 +27,7 @@ class BaseServer(object):
* an integer -- a shortcut for ``gevent.pool.Pool(integer)``
"""
spawn
=
Greenlet
.
spawn
_
spawn
=
Greenlet
.
spawn
# the default backlog to use if none was provided in __init__
backlog
=
256
...
...
@@ -61,17 +61,17 @@ class BaseServer(object):
def
set_spawn
(
self
,
spawn
):
if
spawn
==
'default'
:
self
.
pool
=
None
self
.
spawn
=
self
.
spawn
self
.
_spawn
=
self
.
_
spawn
elif
hasattr
(
spawn
,
'spawn'
):
self
.
pool
=
spawn
self
.
spawn
=
spawn
.
spawn
self
.
_
spawn
=
spawn
.
spawn
elif
isinstance
(
spawn
,
int
):
from
gevent.pool
import
Pool
self
.
pool
=
Pool
(
spawn
)
self
.
spawn
=
self
.
pool
.
spawn
self
.
_
spawn
=
self
.
pool
.
spawn
else
:
self
.
pool
=
None
self
.
spawn
=
spawn
self
.
_
spawn
=
spawn
if
hasattr
(
self
.
pool
,
'full'
):
self
.
full
=
self
.
pool
.
full
...
...
gevent/http.py
View file @
58184039
...
...
@@ -21,7 +21,7 @@ class HTTPServer(BaseServer):
return
self
.
http
is
not
None
def
_on_request
(
self
,
request
):
spawn
=
self
.
spawn
spawn
=
self
.
_
spawn
if
spawn
is
None
:
self
.
handle
(
request
)
else
:
...
...
gevent/server.py
View file @
58184039
...
...
@@ -120,7 +120,7 @@ class StreamServer(BaseServer):
self
.
delay
=
self
.
min_delay
client_socket
=
socket
.
socket
(
_sock
=
client_socket
)
spawn
=
self
.
spawn
spawn
=
self
.
_
spawn
if
spawn
is
None
:
self
.
_handle
(
client_socket
,
address
)
else
:
...
...
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