1. 21 May, 2015 1 commit
  2. 07 Jan, 2014 1 commit
  3. 20 Aug, 2012 1 commit
  4. 13 Mar, 2012 1 commit
  5. 28 Feb, 2012 1 commit
  6. 05 Jan, 2012 1 commit
  7. 27 Apr, 2011 1 commit
    • Julien Muchembled's avatar
      connection: make close always call handler (connectionClosed or connectionFailed) · 4b6c1387
      Julien Muchembled authored
      Main reason is that it's difficult to know in advance which side really closes
      the connection. Network events can be chaotic and this could lead to many race
      conditions.
      Thus, handler can be used to update any database that is somewhat redundant
      to the connection status, i.e. node status usually. Safely and less duplicated
      code.
      
      This change is motivated by recurrent random failures during election.
      An example of race condition was that 2 fully connected master could close the
      extra connection (the primary -> secondary one) at the same time.
      
      In order to stabilize lower-level code and start with reliable election process,
      code has also been simplified to not care about node states. All connections
      without exception are closed at the end of the election and states are then
      updated 1 by 1 by identification handler.
      Note that during election, there may be 2 connection per node, which makes
      difficult to update node states by connectionFailed/connectionClosed events.
      
      timeoutExpired & peerBroken are dropped as they are unused for the moment.
      A new API should be designed so that connectionClosed know the reason of the
      close.
      BROKEN state becomes unused.
      
      git-svn-id: https://svn.erp5.org/repos/neo/trunk@2732 71dcc9de-d417-0410-9af5-da40c76e7ee4
      4b6c1387
  8. 17 Jan, 2011 1 commit
  9. 05 Nov, 2010 1 commit
  10. 01 Feb, 2010 2 commits
  11. 28 Jan, 2010 1 commit
  12. 07 Oct, 2009 1 commit
  13. 05 Oct, 2009 1 commit
  14. 01 Oct, 2009 3 commits
  15. 03 Aug, 2009 2 commits
  16. 28 Jul, 2009 1 commit
  17. 27 Jul, 2009 1 commit
  18. 22 Jul, 2009 1 commit
  19. 21 Jul, 2009 1 commit
  20. 20 Jul, 2009 1 commit
  21. 08 Jul, 2009 1 commit
  22. 03 Jul, 2009 1 commit
  23. 29 Jun, 2009 1 commit
  24. 26 Jun, 2009 1 commit
  25. 24 Jun, 2009 1 commit
  26. 23 Jun, 2009 1 commit
  27. 22 Jun, 2009 1 commit
  28. 27 May, 2009 1 commit
  29. 25 May, 2009 1 commit