Closed lpetrovic05 closed 5 years ago
Hi,
I think you're correct. You're more than welcome to submit a PR with the change. If not I'll get around to fixing it eventually.
Thanks!
Hi, I created a pull request. Review and approve whenever convenient. Thanks
The snippet below has been taken from the readme.md file. The comment says that a mapping should be refreshed every 20 seconds and it should be set to last 40 seconds. So if the
lifetime
is 40 seconds, the this code refreshes every 40 secondsThread.sleep(mappedPort.getLifetime() * 1000L)
and sets its lifetime to half of thatmappedPort.getLifetime() / 2L