forked from saltstack/salt
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
address filehandle/event leak in async run_job invocations
extending on the idea used in saltstack#32145, when _check_pub_data is called it it will create jid subscriptions, regardless of whether anyone will ever come back to retrieve them; in the case of local_async calls noone ever does. In addition to the above, we use the listen kwarg provided by c59a5ad to know whether we need to subscribe to events in addition to ensuring the ioloop is listening before a call is made. This should fix saltstack#40245, saltstack#20639, saltstack#36374
- Loading branch information
Showing
1 changed file
with
11 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters