Skip to content
Snippets Groups Projects
Commit 4b69dfcd authored by Vladislav Shpilevoy's avatar Vladislav Shpilevoy
Browse files

netbox: fix leak of connection with set reconnect_after option

If a connection has reconnect_after > 0, then it is never deleted
until it is explicitly closed or reconnect_after is reset. It is
because worker fiber of such connection holds all references
during yield.

Fix it by do not waiting for a next reconnection inside a state
machine - protocol_sm() function must not be infinite in a case
of error.

Closes #3164
parent 96683602
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment