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
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
Yohann D'Anello
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
Hide 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
:
routing_table
=
f
.
read
()
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