Closed mmatczuk closed 6 months ago
The localhost check uses nopResolver()
https://github.com/saucelabs/forwarder/blob/2c0cba14a2f375ca4430092c68ecc5be1234e47c/http_proxy.go#L507
Using it proves to allocate large amounts of memory. Causing a heap memory hiccup visible in the metrics.
We should change the implementation. I suggest we read and watch /etc/hosts file instead.
/etc/hosts
The localhost check uses nopResolver()
https://github.com/saucelabs/forwarder/blob/2c0cba14a2f375ca4430092c68ecc5be1234e47c/http_proxy.go#L507
Using it proves to allocate large amounts of memory. Causing a heap memory hiccup visible in the metrics.
We should change the implementation. I suggest we read and watch
/etc/hosts
file instead.