-
Notifications
You must be signed in to change notification settings - Fork 4
fix: add soft isolation mode and windows impl #88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: than Dickson <ethan@coder.com>
- Adds new switch to netns called SetCoderSoftIsolation - Adds a branch to the windows socket control function to determine whether soft isolation can be used for the given socket
@@ -281,7 +281,7 @@ func TestConnMemoryOverhead(t *testing.T) { | |||
growthTotal := int64(ms.HeapAlloc) - int64(ms0.HeapAlloc) | |||
growthEach := float64(growthTotal) / float64(num) | |||
t.Logf("Alloced %v bytes, %.2f B/each", growthTotal, growthEach) | |||
const max = 2000 | |||
const max = 2500 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why did we increase the limit for the test?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was using 2018 bytes per run, no idea why
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, though I might have more thoughts once I'm done with the mac impl
macOS impl to come later