Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
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
ZEO
Commits
de952a80
Commit
de952a80
authored
Dec 18, 2009
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Got rid of some debugging code that didn't actually do anything.
Cleaned up trailing whitespace.
parent
6e1be99a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
src/ZEO/zrpc/smac.py
src/ZEO/zrpc/smac.py
+4
-8
No files found.
src/ZEO/zrpc/smac.py
View file @
de952a80
...
...
@@ -75,12 +75,8 @@ class SizedMessageAsyncConnection(asyncore.dispatcher):
socket
=
None
# to outwit Sam's getattr
def
__init__
(
self
,
sock
,
addr
,
map
=
None
,
debug
=
None
):
def
__init__
(
self
,
sock
,
addr
,
map
=
None
):
self
.
addr
=
addr
if
debug
is
not
None
:
self
.
_debug
=
debug
elif
not
hasattr
(
self
,
'_debug'
):
self
.
_debug
=
__debug__
# __input_lock protects __inp, __input_len, __state, __msg_size
self
.
__input_lock
=
threading
.
Lock
()
self
.
__inp
=
None
# None, a single String, or a list
...
...
@@ -150,7 +146,7 @@ class SizedMessageAsyncConnection(asyncore.dispatcher):
yield
''
self
.
message_output
(
hack
())
def
get_addr
(
self
):
return
self
.
addr
...
...
@@ -309,7 +305,7 @@ class SizedMessageAsyncConnection(asyncore.dispatcher):
if
err
[
0
]
in
expected_socket_write_errors
:
break
# we couldn't write anything
raise
if
n
<
l
:
output
.
insert
(
0
,
v
[
n
:])
break
# we can't write any more
...
...
@@ -325,7 +321,7 @@ class SizedMessageAsyncConnection(asyncore.dispatcher):
def
__message_output
(
self
,
message
,
output
):
# do two separate appends to avoid copying the message string
size
=
4
size
=
4
if
self
.
__hmac_send
:
output
.
append
(
struct
.
pack
(
">I"
,
len
(
message
)
|
MAC_BIT
))
self
.
__hmac_send
.
update
(
message
)
...
...
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