TSPluginDSOReloadEnable

Control whether this plugin will take part in the remap dynamic reload process (remap.config)

Synopsis

#include <ts/ts.h>
TSReturnCode TSPluginDSOReloadEnable(int enabled)

Description

This function provides the ability to enable/disable programmatically the plugin dynamic reloading when the same Dynamic Shared Object (DSO) is also used as a remap plugin. This overrides proxy.config.plugin.dynamic_reload_mode.

警告

This function should be called from within TSPluginInit()

The function will return TS_ERROR in any of the following cases:
  • The function was not called from within TSPluginInit()

  • TS is unable to get the canonical path from the plugin's path.

See Also

TSAPI(3ts)