- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for maxListenerBacklog (0.4 sec)
-
src/net/sock_stub.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build aix || js || solaris || wasip1 package net import "syscall" func maxListenerBacklog() int { // TODO: Implement this // NOTE: Never return a number bigger than 1<<16 - 1. See issue 5030. return syscall.SOMAXCONN
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 17:20:52 UTC 2023 - 390 bytes - Viewed (0) -
src/net/sock_windows.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package net import ( "internal/syscall/windows" "os" "syscall" ) func maxListenerBacklog() int { // When the socket backlog is SOMAXCONN, Windows will set the backlog to // "a reasonable maximum value". // See: https://learn.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-listen
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 08 18:52:56 UTC 2024 - 802 bytes - Viewed (0) -
src/net/sock_plan9.go
// Copyright 2013 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package net func maxListenerBacklog() int { // /sys/include/ape/sys/socket.h:/SOMAXCONN return 5
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 23:34:33 UTC 2016 - 262 bytes - Viewed (0) -
src/net/sock_bsd.go
// license that can be found in the LICENSE file. //go:build darwin || dragonfly || freebsd || netbsd || openbsd package net import ( "runtime" "syscall" ) func maxListenerBacklog() int { var ( n uint32 err error ) switch runtime.GOOS { case "darwin", "ios": n, err = syscall.SysctlUint32("kern.ipc.somaxconn") case "freebsd":
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 28 18:17:57 UTC 2021 - 918 bytes - Viewed (0) -
src/net/sock_linux.go
size := 16 if major > 4 || (major == 4 && minor >= 1) { size = 32 } var max uint = 1<<size - 1 if uint(n) > max { n = int(max) } return n } func maxListenerBacklog() int { fd, err := open("/proc/sys/net/core/somaxconn") if err != nil { return syscall.SOMAXCONN } defer fd.close() l, ok := fd.readLine() if !ok { return syscall.SOMAXCONN }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Sep 03 18:39:45 UTC 2022 - 993 bytes - Viewed (0) -
src/net/net.go
SetWriteDeadline(t time.Time) error } var listenerBacklogCache struct { sync.Once val int } // listenerBacklog is a caching wrapper around maxListenerBacklog. // // listenerBacklog should be an internal detail, // but widely used packages access it using linkname. // Notable members of the hall of shame include: // - github.com/database64128/tfo-go/v2
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 26.8K bytes - Viewed (0) -
src/cmd/trace/testdata/go122.test
data="os.OpenFile" String id=158 data="os.Open" String id=159 data="net.open" String id=160 data="/usr/local/google/home/mknyszek/work/go-1/src/net/parse.go" String id=161 data="net.maxListenerBacklog" String id=162 data="/usr/local/google/home/mknyszek/work/go-1/src/net/sock_linux.go" String id=163 data="net.listenerBacklog.func1" String id=164 data="sync.(*Once).doSlow" String id=165
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 17:15:58 UTC 2024 - 166K bytes - Viewed (0)