lib: make sure clear the old timer in http server
Currently we can call listen
twice with same server in cluster worker and the server will emit listening
event twice.
The http server will call setInterval
inlistening
event handler, but the second call do not clear the old timer which will make the memory leak.
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines