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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZEO
Commits
3f9fcece
Commit
3f9fcece
authored
Sep 03, 2000
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added logging of connection attempts
parent
44d46f4d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
src/ZEO/zrpc.py
src/ZEO/zrpc.py
+4
-3
No files found.
src/ZEO/zrpc.py
View file @
3f9fcece
...
...
@@ -85,14 +85,14 @@
"""Simple rpc mechanisms
"""
__version__
=
"$Revision: 1.
8
$"
[
11
:
-
2
]
__version__
=
"$Revision: 1.
9
$"
[
11
:
-
2
]
from
cPickle
import
loads
from
thread
import
allocate_lock
from
smac
import
SizedMessageAsyncConnection
import
socket
,
string
,
struct
,
asyncore
,
sys
,
time
,
cPickle
TupleType
=
type
(())
from
zLOG
import
LOG
,
TRACE
,
DEBUG
from
zLOG
import
LOG
,
TRACE
,
DEBUG
,
INFO
# We create a special fast pickler! This allows us
# to create slightly more efficient pickles and
...
...
@@ -118,11 +118,12 @@ class asyncRPC(SizedMessageAsyncConnection):
self
.
__r
=
None
l
.
acquire
()
def
connect
(
self
,
tryonce
=
1
):
def
connect
(
self
,
tryonce
=
1
,
log_type
=
'client'
):
t
=
self
.
_tmin
connection
=
self
.
_connection
debug
=
self
.
_debug
while
1
:
if
log_type
:
LOG
(
log_type
,
INFO
,
'Trying to connect to server'
)
try
:
if
type
(
connection
)
is
type
(
''
):
s
=
socket
.
socket
(
socket
.
AF_UNIX
,
socket
.
SOCK_STREAM
)
...
...
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