greim / hoxy

Web-hacking proxy API for node
http://greim.github.io/hoxy/
MIT License
597 stars 97 forks source link

staticServer in Cycle is never being closed. #105

Open matrushka opened 6 years ago

matrushka commented 6 years ago

I've been trying to use hoxy for testing a webpage using jest framework. Everytime I run it my testing framework refuses to quit warning me that there's an open handle. I've traced this back to the staticServer in cycle. That server is being created as soon as hoxy is loaded and there are no references to it so I can close it after I'm done using hoxy in runtime. There might be couple of solutions for dealing with this: