Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
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
Nicolas Wavrant
ZODB
Commits
fcab00e3
Commit
fcab00e3
authored
Sep 17, 2002
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove redundant class ServerConnection.
Cleanup comments for Managed*Connection. Whitespace normalization.
parent
24ab25d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
15 deletions
+6
-15
src/ZEO/zrpc/connection.py
src/ZEO/zrpc/connection.py
+6
-15
No files found.
src/ZEO/zrpc/connection.py
View file @
fcab00e3
...
...
@@ -358,7 +358,7 @@ class Connection(smac.SizedMessageAsyncConnection):
log
(
"wait() async=%d"
%
self
.
is_async
(),
level
=
zLOG
.
TRACE
)
if
self
.
is_async
():
self
.
trigger
.
pull_trigger
()
self
.
__replies_cond
.
acquire
()
try
:
while
1
:
...
...
@@ -423,16 +423,9 @@ class Connection(smac.SizedMessageAsyncConnection):
raise
else
:
self
.
handle_error
()
class
ServerConnection
(
Connection
):
"""Connection on the server side"""
# The server side does not send a protocol message. Instead, it
# adapts to whatever the client sends it.
class
ManagedServerConnection
(
Server
Connection
):
"""
A connection that notifies its ConnectionManager of closing
"""
class
ManagedServerConnection
(
Connection
):
"""
Server-side Connection subclass.
"""
__super_init
=
Connection
.
__init__
__super_close
=
Connection
.
close
...
...
@@ -447,11 +440,7 @@ class ManagedServerConnection(ServerConnection):
self
.
__mgr
.
close_conn
(
self
)
class
ManagedConnection
(
Connection
):
"""A connection that notifies its ConnectionManager of closing.
A managed connection also defers the ThreadedAsync work to its
manager.
"""
"""Client-side Connection subclass."""
__super_init
=
Connection
.
__init__
__super_close
=
Connection
.
close
...
...
@@ -460,6 +449,8 @@ class ManagedConnection(Connection):
self
.
__super_init
(
sock
,
addr
,
obj
)
self
.
check_mgr_async
()
# Defer the ThreadedAsync work to the manager.
def
close_trigger
(
self
):
# the manager should actually close the trigger
del
self
.
trigger
...
...
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