Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
re6stnet
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Milestones
Merge Requests
5
Merge Requests
5
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
nexedi
re6stnet
Commits
1d82935d
Commit
1d82935d
authored
Jul 25, 2016
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ignore ENOMEM when checking routing cache
parent
f2363823
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
re6st/tunnel.py
re6st/tunnel.py
+9
-1
No files found.
re6st/tunnel.py
View file @
1d82935d
...
...
@@ -499,7 +499,15 @@ class BaseTunnelManager(object):
# increases the probability of invalid entries in the cache:
# https://lists.alioth.debian.org/pipermail/babel-users/2016-June/002547.html
with
open
(
'/proc/net/ipv6_route'
,
"r"
,
4096
)
as
f
:
try
:
routing_table
=
f
.
read
()
except
IOError
,
e
:
# ???: If someone can explain why the kernel sometimes fails
# even when there's a lot of free memory.
if
e
.
errno
!=
errno
.
ENOMEM
:
raise
logging
.
error
(
"Ignoring ENOMEM when checking routing cache"
)
return
cache
=
[]
other
=
[]
n
=
self
.
_network
...
...
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