The go plugin may not work right?

I use the kong 2.0.1,
go-pluginserver is the master of github.com/Kong/go-pluginserver which clone at 2020-02-13

I have a go plugin that set on 2 routes and uses different plugin parameters.
When I send a request match one of the routes, the StartInstance function in go_pluginserver will be called with my plugin parameters,
then I send another request which matched another routes, the StartInstance function is not called, it used the old Instance, so the plugin parameters is wrong.

the problem can’t found on lua plugin .

@javier @salazar might be able to answer here.

HI @sison. I’ve reproduced your issue and have a fix in the queue. Can you confirm which DB or dbless / declarative config?

Hi, this is my config
DB: cassandra
configs:
KONG_ADMIN_ACCESS_LOG="/dev/stdout"
KONG_ADMIN_ERROR_LOG="/dev/stderr"
KONG_ADMIN_LISTEN=“0.0.0.0:8001, 0.0.0.0:8444 ssl”
KONG_CASSANDRA_CONTACT_POINTS=“kong-database”
KONG_DATABASE=“cassandra”
KONG_GO_PLUGINS_DIR="/home/plugin/"
KONG_LOG_LEVEL=“debug”
KONG_PG_HOST=“kong-database”
KONG_PLUGINS=“bundled,go-hello”
KONG_PROXY_ACCESS_LOG="/dev/stdout"
KONG_PROXY_ERROR_LOG="/dev/stderr"
KONG_GO_PLUGINSERVER_EXE="/home/server"


© 2019 Kong Inc.    Terms  •  Privacy  •  FAQ