[cgmanager-devel] [cgmanager/cgmanager] bacf43: add timeout to connections

GitHub noreply at github.com
Mon Apr 7 14:19:11 UTC 2014


  Branch: refs/heads/master
  Home:   https://github.com/cgmanager/cgmanager
  Commit: bacf43b33ab7e26714dd4ffd1ced6eda343e12e4
      https://github.com/cgmanager/cgmanager/commit/bacf43b33ab7e26714dd4ffd1ced6eda343e12e4
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2014-04-07 (Mon, 07 Apr 2014)

  Changed paths:
    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