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
33fd0e3a
Commit
33fd0e3a
authored
Jan 09, 2003
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
In close_server(), fix reference to timeouts.
Close the trigger when the server exits.
parent
4f979d02
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
src/ZEO/StorageServer.py
src/ZEO/StorageServer.py
+7
-2
No files found.
src/ZEO/StorageServer.py
View file @
33fd0e3a
...
...
@@ -235,7 +235,8 @@ class StorageServer:
This is only called from the test suite, AFAICT.
"""
self
.
timeout
.
stop
()
for
timeout
in
self
.
timeouts
.
values
():
timeout
.
stop
()
self
.
dispatcher
.
close
()
for
storage
in
self
.
storages
.
values
():
storage
.
close
()
...
...
@@ -782,13 +783,17 @@ class TimeoutThread(threading.Thread):
self
.
_active
.
wait
()
self
.
_lock
.
acquire
()
try
:
howlong
=
self
.
_deadline
-
time
.
time
()
deadline
=
self
.
_deadline
if
deadline
is
None
:
continue
howlong
=
deadline
-
time
.
time
()
finally
:
self
.
_lock
.
release
()
if
howlong
<=
0
:
self
.
timeout
()
else
:
time
.
sleep
(
howlong
)
self
.
trigger
.
close
()
def
timeout
(
self
):
self
.
_lock
.
acquire
()
...
...
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