[cgmanager-devel] [cgmanager/cgmanager] 3f9a68: add timeout to connections
GitHub
noreply at github.com
Mon Apr 7 16:52:48 UTC 2014
Branch: refs/heads/master
Home: https://github.com/cgmanager/cgmanager
Commit: 3f9a6812031f2230063cda361745576d1eee70f4
https://github.com/cgmanager/cgmanager/commit/3f9a6812031f2230063cda361745576d1eee70f4
Author: Serge Hallyn <serge.hallyn at ubuntu.com>
Date: 2014-04-07 (Mon, 07 Apr 2014)
Changed paths:
M Makefile.am
M cgmanager-proxy.c
M cgmanager.c
M frontend.c
M frontend.h
A tests/test-timeout.c
Log Message:
-----------
add timeout to connections
To avoid having lazy callers fill up our fdtable. Every new method that
is called causes the timeout to be reset.
In order to avoid having to walk all of the nih_timers to look for the
one to reset, we keep our own separate hash of connection timers keyed
on the connection itself. This is the bulk of the new code.
Also increase our open file limit to 10k.
Signed-off-by: Serge Hallyn <serge.hallyn at ubuntu.com>
More information about the cgmanager-devel
mailing list