-
Hey everyone, I'm writing my RR plugin and I'm facing an issue. I'd like to store some data to RR before the workers start receiving requests. But, the PHP worker gets an exception during the connection establishing. I assume the RPC plugin starts after the worker initialization. Is there any way I can do that? or any workaround for it? I can just run Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hey @fr05t1k. Just use goroutine to init workers in the |
Beta Was this translation helpful? Give feedback.
Hey @fr05t1k. Just use goroutine to init workers in the
Serve
function like here: https://github.com/roadrunner-server/http/blob/master/plugin.go#L112