Anyproxy crashed at the creating process after several times of started and closed in js code.
Infact, I haven't found a way to change a anyproxy server's rule after initializing the server. so I have to create a new one every time when the rule changed. And after a few times, one server crashed with the error shown below:
- Windows 10
- nodejs 8.3
- anyproxy 4.0.10
ErrorMessage:
the bug happened at:
the directory which the bug message referred:
config file:
I suppose it is a directory naming problem, which is seldom happened. But it happened! So please make some effort to improve it's usability!
7条答案
按热度按时间uemypmqf1#
Hi @Sherler
Sorry about the cache name issue, it's a random code so there is really a chance to be conflicted, we should check the existance before creating it.
BTW, the older cache folder should be cleard after each stop, so can you share the process about how you closing AnyProxy, did you see the console
clearing cache file...
when restart it?j2qf4p5b2#
as you can see in my cache dir, none of my proxy cache files is deleted.
here is my way of closing proxy:
lo8azlld3#
I see it :
[AnyProxy Log][2018-08-06 15:09:04]: clearing cache file...
and the cache file is empty:
so, you didn't clear the cache directory...
pxiryf3j4#
oh, sorry, the cache directory is cleared too. But there were times, my project crashed for some other reason, and the method
proxyServer.close()
can't be called at that time. So, there is no problem in the closing process.jckbn6z75#
@Sherler
I see, so there are problems when AnyProxy crashed for some reason, we are working to solve this, maybe will clear the full cache folder instead just the cache_xxxx ones.
uttx8gqw6#
@codingfishman yeah, thank you very much, and waiting for the new updates!
z18hc3ub7#
期待更新