Skip to content

Commit 63cd8cc

Browse files
nybidarigvisor-bot
authored andcommitted
Update the SOMAXCONN value in gvisor.
Update the SOMAXCONN to 1024 which is the maximum value supported in gvisor. PiperOrigin-RevId: 790953501
1 parent 153f262 commit 63cd8cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/sentry/fsimpl/proc/tasks_sys.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ func (fs *filesystem) newSysNetDir(ctx context.Context, root *auth.Credentials,
142142
"optmem_max": fs.newInode(ctx, root, 0444, newStaticFile("0")),
143143
"rmem_default": fs.newInode(ctx, root, 0444, newStaticFile("212992")),
144144
"rmem_max": fs.newInode(ctx, root, 0444, newStaticFile("212992")),
145-
"somaxconn": fs.newInode(ctx, root, 0444, newStaticFile("128")),
145+
"somaxconn": fs.newInode(ctx, root, 0444, newStaticFile("1024")),
146146
"wmem_default": fs.newInode(ctx, root, 0444, newStaticFile("212992")),
147147
"wmem_max": fs.newInode(ctx, root, 0444, newStaticFile("212992")),
148148
}),

0 commit comments

Comments
 (0)