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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Joshua
zodb
Commits
20ce4405
Commit
20ce4405
authored
Jan 02, 2004
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
int -> bool
parent
441eb553
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
src/ZEO/zrpc/smac.py
src/ZEO/zrpc/smac.py
+6
-6
No files found.
src/ZEO/zrpc/smac.py
View file @
20ce4405
...
...
@@ -70,7 +70,7 @@ class SizedMessageAsyncConnection(asyncore.dispatcher):
__super_init
=
asyncore
.
dispatcher
.
__init__
__super_close
=
asyncore
.
dispatcher
.
close
__closed
=
1
# Marker indicating that we're closed
__closed
=
True
# Marker indicating that we're closed
socket
=
None
# to outwit Sam's getattr
...
...
@@ -99,7 +99,7 @@ class SizedMessageAsyncConnection(asyncore.dispatcher):
self
.
__msg_size
=
4
self
.
__output_lock
=
threading
.
Lock
()
# Protects __output
self
.
__output
=
[]
self
.
__closed
=
0
self
.
__closed
=
False
# Each side of the connection sends and receives messages. A
# MAC is generated for each message and depends on each
# previous MAC; the state of the MAC generator depends on the
...
...
@@ -225,13 +225,13 @@ class SizedMessageAsyncConnection(asyncore.dispatcher):
self
.
__input_lock
.
release
()
def
readable
(
self
):
return
1
return
True
def
writable
(
self
):
if
len
(
self
.
__output
)
==
0
:
return
0
return
False
else
:
return
1
return
True
def
handle_write
(
self
):
self
.
__output_lock
.
acquire
()
...
...
@@ -302,5 +302,5 @@ class SizedMessageAsyncConnection(asyncore.dispatcher):
def
close
(
self
):
if
not
self
.
__closed
:
self
.
__closed
=
1
self
.
__closed
=
True
self
.
__super_close
()
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