Ville Vesilehto
39abf5aeba
chore(lint): modernize Go ( #7536 )
...
Use modern Go constructs through the modernize analyzer from the
golang.org/x/tools package.
Signed-off-by: Ville Vesilehto <ville@vesilehto.fi >
2025-09-10 13:08:27 -07:00
Ville Vesilehto
8cac83dfb5
lint: enable wastedassign linter ( #7340 )
2025-06-01 16:30:41 -07:00
Ville Vesilehto
0a48523083
fix(proxy): avoid Dial hang after Transport stopped ( #7321 )
...
Ensure Dial exits early or returns error when Transport has been
stopped, instead of blocking on the dial or ret channels. This removes
a potential goroutine leak where callers could pile up waiting
forever under heavy load.
Add select guards before send and receive, and propagate clear error
values so callers can handle shutdown gracefully.
Signed-off-by: Ville Vesilehto <ville@vesilehto.fi >
2025-05-28 06:58:48 -07:00
Sri Harsha
4c69549832
Handle UDP responses that overflow with TC bit with test case ( #6277 )
...
Signed-off-by: SriHarshaBS001 <SriHarshaBS009@gmail.com >
2023-09-07 15:01:45 -04:00
Chris O'Haver
678d0333af
Revert "plugin/forward: Continue waiting after receiving malformed responses ( #6014 )" ( #6270 )
...
This reverts commit 604a902e2c .
2023-08-14 20:33:37 -04:00
Pat Downey
ea293da1d6
Fix forward metrics for backwards compatibility ( #6178 )
2023-07-04 16:35:55 +02:00
Chris O'Haver
604a902e2c
plugin/forward: Continue waiting after receiving malformed responses ( #6014 )
...
* forward: continue waiting after malformed responses
Signed-off-by: Chris O'Haver <cohaver@infoblox.com >
* add test
Signed-off-by: Chris O'Haver <cohaver@infoblox.com >
* fix test
Signed-off-by: Chris O'Haver <cohaver@infoblox.com >
* clean up
Signed-off-by: Chris O'Haver <cohaver@infoblox.com >
* clean up
Signed-off-by: Chris O'Haver <cohaver@infoblox.com >
* move test to /test/. Add build tag.
Signed-off-by: Chris O'Haver <cohaver@infoblox.com >
* install libpcap-dev for e2e tests
Signed-off-by: Chris O'Haver <cohaver@infoblox.com >
* sudo the test
Signed-off-by: Chris O'Haver <cohaver@infoblox.com >
* remove stray err check
Signed-off-by: Chris O'Haver <cohaver@infoblox.com >
* disable the test
Signed-off-by: Chris O'Haver <cohaver@infoblox.com >
* use -exec flag to run test binary as root
Signed-off-by: Chris O'Haver <cohaver@infoblox.com >
* run new test by itself in a new workflow
Signed-off-by: Chris O'Haver <cohaver@infoblox.com >
* fix test name
Signed-off-by: Chris O'Haver <cohaver@infoblox.com >
* only for udp
Signed-off-by: Chris O'Haver <cohaver@infoblox.com >
* remove libpcap test workflow action
Signed-off-by: Chris O'Haver <cohaver@infoblox.com >
* remove test, since it cant run in ci
Signed-off-by: Chris O'Haver <cohaver@infoblox.com >
* and remove gopacket package
Signed-off-by: Chris O'Haver <cohaver@infoblox.com >
---------
Signed-off-by: Chris O'Haver <cohaver@infoblox.com >
2023-04-29 11:52:00 +02:00
Pat Downey
f823825f8a
plugin/forward: Allow Proxy to be used outside of forward plugin. ( #5951 )
...
* plugin/forward: Move Proxy into pkg/plugin/proxy, to allow forward.Proxy to be used outside of forward plugin.
Signed-off-by: Patrick Downey <patrick.downey@dioadconsulting.com >
2023-03-24 08:55:51 -04:00