commit | 5d1979501a0dbdb93975098d523fad9687a6350e | [log] [tgz] |
---|---|---|
author | Suharsh Sivakumar <suharshs@google.com> | Mon May 16 18:48:49 2016 -0700 |
committer | Suharsh Sivakumar <suharshs@google.com> | Mon May 16 18:48:49 2016 -0700 |
tree | 1de131778f26d09d8630c2590d80c92b621ca3bd | |
parent | 90c8ccd35fa8e4eb6f79c1e58fc93d93da0299e6 [diff] |
rpc: Automatically relisten when listening fails. Motivation: BT can cause listening to fail on devices when the BT settings are turned on and off. We would like clients to connect to servers once both have BT enabled, regardless of when it is turned on. The clients BT settings don't matter since the client retries its RPCs, so when it turns on BT, the RPC will work. But, when the server has its BT off, the BT classic net.Listener can fail causing the server to stop listening. Two flow manager listening cases to handle: (1) NewListener() fails (i.e. BT classic is turned off before the server is created) (2) listener.Accept() fails (i.e. BT classic is turned off during the lifetime of the server) This CL solves the issue by having the server relisten when listening fails for either of these reasons (similar to how ProxyListen works at the moment). MultiPart: 1/2 Change-Id: Ia559eb1439ddca80a6d43b0cedda09e37423a479
This repository defines the Go APIs of Vanadium.