emqx-web-hook icon indicating copy to clipboard operation
emqx-web-hook copied to clipboard

Will this sleep() before a retry block the broker application?

Open matheuscscp opened this issue 5 years ago • 3 comments

https://github.com/emqx/emqx-web-hook/blob/45b4a55de8cd240e7698b0d45cff1ebe811db769/src/emqx_web_hook.erl#L289

This sleep() runs before another request attempt is sent. Will this sleep() block the entire broker, or the webhook plugin runs in a separate thread?

matheuscscp avatar Jul 17 '19 23:07 matheuscscp

Nope. It does not block the entire broker. These lines running in each connection process.

Don't worry about that :-)

HJianBo avatar Jul 03 '20 01:07 HJianBo

Each connection has a whole process for it?

matheuscscp avatar Jul 03 '20 23:07 matheuscscp

Yes. it is

HJianBo avatar Jul 06 '20 01:07 HJianBo