Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stub: support restart after stub stopped #91

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Jul 25, 2024

  1. stub: support re-start after stub stopped

    In some scenarios such as runtime restart or the occurrence of
    nri request timeout, the ttrpc connections between the plugin
    and the runtime will be actively closed by the runtime, even the
    underlying network connection will be closed together. After this,
    the plugin must need to re-register to the adaptation side, but now
    the stub object cannot be reused for this; if the running plugin
    wants to reconnect to the runtime, the only way is to create a new
    stub for the plugin.
    
    This commit has split the lifecycle of the stub and the ttrpc
    connection to better support the development of the external type
    of plugins. The plugin developer can build stub once and use it to
    connect to adaptation side many times, just need re-call Start()
    function.
    
    Signed-off-by: Lei Liu <liulei.pt@bytedance.com>
    zhaodiaoer committed Jul 25, 2024
    Configuration menu
    Copy the full SHA
    316daf5 View commit details
    Browse the repository at this point in the history