History | View | Annotate | Download (8.4 kB)
Let Python network Transport retry if endpoint is missing
If the endpoint (such as Luxid or WConfd) isn't running, don't failimmediately. Instead retry (within the given timeout) and try toreconnect.
Signed-off-by: Petr Pudlak <pudlak@google.com>Reviewed-by: Klaus Aehlig <aehlig@google.com>
Add a transport that works over FDs instead a socket
This allows to set up a client using the Luxi-like protocol over a pipe,which will be needed for job processes to communicate with their parentprocess.
While at it, fix the style of calling init in AbstractStubClient....
Use RPC transport to pass OS params to the metadata daemon
Signed-off-by: Jose A. Lopes <jabolopes@google.com>Reviewed-by: Hrvoje Ribicic <riba@google.com>
Remove unused import in rpc/transport.py
.. which got there by mistake.
Retry luxi/wconfd RPC calls if the connection is closed
Since the daemon can decide to close a client connection after atimeout, the client needs to be able to automatically reconnect.
This patch introduces this functionality into the RPC client:If an attempt to send data fails on 'Broken pipe', it's retried one more...
Move Transport from luxi.py to a separate module
Also create a new module for RPC errors.This allows it to be reused for other clients as well.
Signed-off-by: Petr Pudlak <pudlak@google.com>Reviewed-by: Helga Velroyen <helgav@google.com>