mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 06:35:42 +00:00
df970eb457
UnixSocketConsumer now maintains a delay for re-establishing closed connection. The initial delay is zero, so that the first connect call is processed immediately. At the first failed attempt to connect, the delay is set to ~1 second, and is increased by a factor of 2 on each successive error until it reaches ~1 minute. The UnixSocketConsumer code resets the delay to zero if it is lower than the time that the connection was open. This heuristics protects against cases where the peer establishes a connection, and closes it shortly afterwards. Incompatible versions of rild show this behavior. |
||
---|---|---|
.. | ||
moz.build | ||
UnixSocket.cpp | ||
UnixSocket.h |