Revision 00b7717d3564059b10ff3cdeca2290004b1f8e16 authored by Jarno Rajahalme on 08 June 2024, 11:13:30 UTC, committed by Jarno Rajahalme on 14 June 2024, 10:12:59 UTC
Clear proxy port on failure so that we'll try another random port next time. We have two failure cases for creating new redirects: - syncronous, for DNS proxy. Simply zero the proxy port in the retry loop. - asynchronous, for Envoy proxy. Clear proxy port state on revert callback. Noticed the need for this change when accidentally trying to use port 1 for Envoy when developing another feature. In this case Envoy can't bind the port, and all further tries were also trying the same port, as the proxy port was not cleared on revert. Signed-off-by: Jarno Rajahalme <jarno@isovalent.com>
1 parent b30a3a9
File | Mode | Size |
---|---|---|
.codecov.yml | -rw-r--r-- | 763 bytes |
.gitignore | -rw-r--r-- | 34 bytes |
CHANGELOG.md | -rw-r--r-- | 1.9 KB |
LICENSE.txt | -rw-r--r-- | 1.0 KB |
Makefile | -rw-r--r-- | 874 bytes |
README.md | -rw-r--r-- | 1.5 KB |
error.go | -rw-r--r-- | 17.4 KB |
error_post_go120.go | -rw-r--r-- | 1.6 KB |
error_pre_go120.go | -rw-r--r-- | 2.7 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...