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
bfc22d06
Commit
bfc22d06
authored
Sep 03, 2000
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added options to control reconnect poll times
parent
3f9fcece
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
src/ZEO/ClientStorage.py
src/ZEO/ClientStorage.py
+6
-3
No files found.
src/ZEO/ClientStorage.py
View file @
bfc22d06
...
@@ -84,7 +84,7 @@
...
@@ -84,7 +84,7 @@
##############################################################################
##############################################################################
"""Network ZODB storage client
"""Network ZODB storage client
"""
"""
__version__
=
'$Revision: 1.1
6
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.1
7
$'
[
11
:
-
2
]
import
struct
,
time
,
os
,
socket
,
string
,
Sync
,
zrpc
,
ClientCache
import
struct
,
time
,
os
,
socket
,
string
,
Sync
,
zrpc
,
ClientCache
import
tempfile
,
Invalidator
,
ExtensionClass
,
thread
import
tempfile
,
Invalidator
,
ExtensionClass
,
thread
...
@@ -116,7 +116,8 @@ class ClientStorage(ExtensionClass.Base, BaseStorage.BaseStorage):
...
@@ -116,7 +116,8 @@ class ClientStorage(ExtensionClass.Base, BaseStorage.BaseStorage):
__begin
=
'tpc_begin_sync'
__begin
=
'tpc_begin_sync'
def
__init__
(
self
,
connection
,
async
=
0
,
storage
=
'1'
,
cache_size
=
20000000
,
def
__init__
(
self
,
connection
,
async
=
0
,
storage
=
'1'
,
cache_size
=
20000000
,
name
=
''
,
client
=
''
,
debug
=
0
,
var
=
None
):
name
=
''
,
client
=
''
,
debug
=
0
,
var
=
None
,
min_disconnect_poll
=
5
,
max_disconnect_poll
=
300
):
# Decide whether to use non-temporary files
# Decide whether to use non-temporary files
client
=
client
or
os
.
environ
.
get
(
'ZEO_CLIENT'
,
''
)
client
=
client
or
os
.
environ
.
get
(
'ZEO_CLIENT'
,
''
)
...
@@ -129,7 +130,9 @@ class ClientStorage(ExtensionClass.Base, BaseStorage.BaseStorage):
...
@@ -129,7 +130,9 @@ class ClientStorage(ExtensionClass.Base, BaseStorage.BaseStorage):
'supportsUndo'
:
0
,
'supportsVersions'
:
0
,
'supportsUndo'
:
0
,
'supportsVersions'
:
0
,
}
}
self
.
_call
=
zrpc
.
asyncRPC
(
connection
,
debug
=
debug
)
self
.
_call
=
zrpc
.
asyncRPC
(
connection
,
debug
=
debug
,
tmin
=
min_disconnect_poll
,
tmax
=
max_disconnect_poll
)
name
=
name
or
str
(
connection
)
name
=
name
or
str
(
connection
)
...
...
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