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
Kirill Smelkov
ZODB
Commits
88a40ec1
Commit
88a40ec1
authored
Feb 27, 2006
by
Chris McDonough
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mac OS X uses EINVAL to signal timeout failure.
Formatting changes.
parent
066c77ac
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
src/ZEO/ClientStorage.py
src/ZEO/ClientStorage.py
+3
-3
src/ZEO/tests/forker.py
src/ZEO/tests/forker.py
+4
-0
No files found.
src/ZEO/ClientStorage.py
View file @
88a40ec1
...
...
@@ -315,8 +315,7 @@ class ClientStorage(object):
self
.
_lock
=
threading
.
Lock
()
# XXX need to check for POSIX-ness here
if
blob_dir
is
not
None
and
\
(
os
.
stat
(
blob_dir
).
st_mode
&
077
)
!=
0
:
if
blob_dir
is
not
None
and
(
os
.
stat
(
blob_dir
).
st_mode
&
077
)
!=
0
:
log2
(
'Blob dir %s has insecure mode setting'
%
blob_dir
,
level
=
logging
.
WARNING
)
...
...
@@ -978,7 +977,8 @@ class ClientStorage(object):
3. If not beeing downloaded, start download
"""
if
self
.
blob_dir
is
None
:
raise
POSException
.
Unsupported
(
"No blob cache directory is configured. Can not load blob."
)
raise
POSException
.
Unsupported
(
"No blob cache directory is "
"configured."
)
blob_filename
=
self
.
_getCleanFilename
(
oid
,
serial
)
# Case 1: Blob is available already, just use it
...
...
src/ZEO/tests/forker.py
View file @
88a40ec1
...
...
@@ -185,6 +185,10 @@ def shutdown_zeo_server(adminaddr):
break
raise
except
socket
.
error
,
e
:
# Mac OS X uses EINVAL to signal unbound socket timeout failure
if
sys
.
platform
==
'darwin'
:
if
e
[
0
]
==
errno
.
EINVAL
and
i
>
0
:
break
if
e
[
0
]
==
errno
.
ECONNREFUSED
and
i
>
0
:
break
raise
...
...
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