#759
virtualnetwork: configure TCP time-wait timeout
Summary
Expose the TCP TIME-WAIT timeout as stack.tcpTimeWaitTimeout so gvproxy users can shorten long stalls caused by stale 4-tuples. A zero value keeps gVisor's existing 60-second default; positive values set seconds per virtual network. Reject negative and overflowing values before allocating the network endpoint.
Fixes #757.
Testing
go test ./pkg/... ./cmd/gvproxy/... -count=1go vet ./pkg/virtualnetwork ./cmd/gvproxygit diff --check
[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: sairex53 Once this PR has been reviewed and has the lgtm label, please assign baude for approval. For more information see the Code Review Process.
The full list of commands accepted by this bot can be found here.
Approvers can indicate their approval by writing
/approvein a comment Approvers can cancel approval by writing/approve cancelin a comment