An error occurred fetching the project authors.
- 07 Apr, 2011 1 commit
-
-
Julien Muchembled authored
To avoid too long lines, 'closed' value is displayed as int instead of boolean. git-svn-id: https://svn.erp5.org/repos/neo/trunk@2700 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
- 22 Mar, 2011 1 commit
-
-
Julien Muchembled authored
git-svn-id: https://svn.erp5.org/repos/neo/trunk@2682 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
- 21 Mar, 2011 1 commit
-
-
Julien Muchembled authored
- remove useless calls to 'bool' - small optimizations in lib.protocol.Packet.__init__ - code simplification in IdentificationHandler - fix typo in docstring - neo/tests/__init__.py: 2 lines were indented with 2-spaces instead of 4-spaces git-svn-id: https://svn.erp5.org/repos/neo/trunk@2671 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
- 17 Jan, 2011 1 commit
-
-
Olivier Cros authored
In order to prepare the eggification of the different neo parts, we created a new neo/lib module, containing all of the main neo's functions. It allows to make neo a virtual namespace, and so not containing module code anymore. git-svn-id: https://svn.erp5.org/repos/neo/trunk@2615 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
- 14 Dec, 2010 1 commit
-
-
Vincent Pelletier authored
git-svn-id: https://svn.erp5.org/repos/neo/trunk@2539 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
- 05 Nov, 2010 3 commits
-
-
Vincent Pelletier authored
git-svn-id: https://svn.erp5.org/repos/neo/trunk@2421 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
Vincent Pelletier authored
This should increase process responsiveness when a single _poll call fetched many packets: as long as packet queue is not empty, no epoll.poll call was made. This means that outgoing packets were kept in our buffer until packet queue becomes empty. git-svn-id: https://svn.erp5.org/repos/neo/trunk@2420 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
Vincent Pelletier authored
Some requests can be safely ignored when received over a closed connection. This was previously done explicitly in handlers, but it turns out it would cause a lot of code duplication. Instead, define the policy on a packet type basis, and apply it to all packets upon reception, before passing it to handler. Also, protect request handlers when they respond, as connection might be closed. git-svn-id: https://svn.erp5.org/repos/neo/trunk@2419 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
- 04 Nov, 2010 1 commit
-
-
Vincent Pelletier authored
- set master_conn to None to clarify disconnection - purge node pool after closing all connections - allow restarting polling thread after its shutdown Also, only start polling thread when needed (side-effect of last point). git-svn-id: https://svn.erp5.org/repos/neo/trunk@2414 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
- 29 Oct, 2010 3 commits
-
-
Vincent Pelletier authored
git-svn-id: https://svn.erp5.org/repos/neo/trunk@2371 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
Vincent Pelletier authored
This way, when called from "ask", displayed timestamp will be closer to packet's timeout base timestamp. git-svn-id: https://svn.erp5.org/repos/neo/trunk@2362 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
Vincent Pelletier authored
git-svn-id: https://svn.erp5.org/repos/neo/trunk@2361 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
- 27 Oct, 2010 1 commit
-
-
Grégory Wisniewski authored
This solve a race condition where the client's thread poll triggers connection(Lost|Failed) before a call to ask(). In that case a answer was registered as expected and never cancelled, which lead to a frozen client. - Split _connectToPrimaryNode - Move ConnectionClosed at generic level git-svn-id: https://svn.erp5.org/repos/neo/trunk@2357 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
- 12 Oct, 2010 1 commit
-
-
Grégory Wisniewski authored
git-svn-id: https://svn.erp5.org/repos/neo/trunk@2351 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
- 28 Aug, 2010 1 commit
-
-
Vincent Pelletier authored
Also, make HandlerSwitcher.isPending() return a boolean, to avoid leaking instance content to foreign code. git-svn-id: https://svn.erp5.org/repos/neo/trunk@2259 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
- 24 Aug, 2010 1 commit
-
-
Vincent Pelletier authored
This causes garbage collection problems, as BaseConnection instances also hold a reference to HandlerSwitcher instance. It is unclear why it fails, as microbenchs show this should not be a problem for gc. Also, move loggers out of HandlerSwitcher.setHandler to avoid passing a connection parameter just for them. git-svn-id: https://svn.erp5.org/repos/neo/trunk@2222 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
- 07 Jun, 2010 1 commit
-
-
Vincent Pelletier authored
Make it optional, to suit "ping" use, but check that it's always passed except in that special case. git-svn-id: https://svn.erp5.org/repos/neo/trunk@2143 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
- 15 May, 2010 1 commit
-
-
Grégory Wisniewski authored
git-svn-id: https://svn.erp5.org/repos/neo/trunk@2113 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
- 13 May, 2010 1 commit
-
-
Vincent Pelletier authored
Such function is provided when message is queued for send when an answer is expected, and is called when the answer is not arrived after expiration of the timeout delay. Depending on the return value of this callback, the timeout is ignored (True) or passed through (False). Also, move code to refresh next timeout value to a separate function, for reusability. git-svn-id: https://svn.erp5.org/repos/neo/trunk@2106 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
- 07 May, 2010 3 commits
-
-
Grégory Wisniewski authored
git-svn-id: https://svn.erp5.org/repos/neo/trunk@2095 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
Grégory Wisniewski authored
git-svn-id: https://svn.erp5.org/repos/neo/trunk@2093 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
Grégory Wisniewski authored
git-svn-id: https://svn.erp5.org/repos/neo/trunk@2083 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
- 30 Apr, 2010 2 commits
-
-
Grégory Wisniewski authored
git-svn-id: https://svn.erp5.org/repos/neo/trunk@2057 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
Grégory Wisniewski authored
git-svn-id: https://svn.erp5.org/repos/neo/trunk@2056 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
- 28 Apr, 2010 2 commits
-
-
Vincent Pelletier authored
This simplifies code (and I should have done it this way from the beginning). Keep the lock check wrapper in MT subclass as it should have been added in r2025 anyway. git-svn-id: https://svn.erp5.org/repos/neo/trunk@2036 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
Vincent Pelletier authored
When a handler sends a request, always queue the response for handling within the same handler, possibly delaying further a pending handler switch. This is for example required to properly complete identification between master nodes, as the connecting master node might exit election phase before receiving peer's AnswerPrimary when peer happens to be the primary. git-svn-id: https://svn.erp5.org/repos/neo/trunk@2035 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
- 27 Apr, 2010 1 commit
-
-
Vincent Pelletier authored
If a first packet is sent and its answer received in time, then a second packet is sent after more than PING_DELAY seconds, a ping will be emitted right after that second packet, because _ping_time was still set. This change resets it when there is no pending requests. Also, as required to have a consistent view of _handlers, check that lock is properly held in the MT variant of the class. git-svn-id: https://svn.erp5.org/repos/neo/trunk@2033 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
- 26 Apr, 2010 2 commits
-
-
Grégory Wisniewski authored
Those events are not purged at disconnection, ignore them here. git-svn-id: https://svn.erp5.org/repos/neo/trunk@2024 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
Vincent Pelletier authored
"was_connected" actually meant "was_not_connected". To avoid using a negation in variable name, fix its use and values it's set to. git-svn-id: https://svn.erp5.org/repos/neo/trunk@2022 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
- 23 Apr, 2010 2 commits
-
-
Vincent Pelletier authored
Cleanup actions are only appropriate if such exception happens in receive/ send, so it should not be applied to other possible sources of exceptions. git-svn-id: https://svn.erp5.org/repos/neo/trunk@2020 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
Vincent Pelletier authored
Any exception triggered by low-level code should cause a log and connection closure before being propagated. git-svn-id: https://svn.erp5.org/repos/neo/trunk@2019 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
- 22 Apr, 2010 5 commits
-
-
Vincent Pelletier authored
There are 2 distinct kinds of timeout events: - an unresponsive node This is a connection-level timeout. This is handled by the Timeout class, triggering pings and monitoring incoming data to decide when remote node is considered dead. - a "too long" processing from an otherwise responsive node This is a per-request timeout. This is handled by the HandlerSwitcher class, triggering only disconnections when an answer takes too long to arrive (historical behaviour, not so useful when exchanging with a single-threaded peer). Previous implementation mixed both, and had shortcomings (ping would timeout almost immediately, it was not possible to tell which message caused a timeout). Update tests. git-svn-id: https://svn.erp5.org/repos/neo/trunk@2009 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
Vincent Pelletier authored
git-svn-id: https://svn.erp5.org/repos/neo/trunk@2008 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
Vincent Pelletier authored
This code appeared obscure upon second read, so I document it. git-svn-id: https://svn.erp5.org/repos/neo/trunk@2007 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
Vincent Pelletier authored
git-svn-id: https://svn.erp5.org/repos/neo/trunk@2006 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
Vincent Pelletier authored
git-svn-id: https://svn.erp5.org/repos/neo/trunk@2005 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
- 19 Apr, 2010 1 commit
-
-
Vincent Pelletier authored
git-svn-id: https://svn.erp5.org/repos/neo/trunk@2001 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
- 01 Apr, 2010 2 commits
-
-
Grégory Wisniewski authored
Typical case: - Handler H1 is set - Send request R1 - Request switch to handler H2 (delayed) - Request switch to handler H3 (delayed) - Receive answer A1 - H2 must be discarded and H3 applied on the connection git-svn-id: https://svn.erp5.org/repos/neo/trunk@1994 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
Grégory Wisniewski authored
git-svn-id: https://svn.erp5.org/repos/neo/trunk@1990 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
- 26 Mar, 2010 1 commit
-
-
Grégory Wisniewski authored
ReadBuffer join received strings only when all requested data is available. This avoid many useless data copies in case of big packets. The gain factor is about 50x for a 25MB packet. git-svn-id: https://svn.erp5.org/repos/neo/trunk@1962 71dcc9de-d417-0410-9af5-da40c76e7ee4
-