Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.unix.programmer > #15463
| From | Kaz Kylheku <433-929-6894@kylheku.com> |
|---|---|
| Newsgroups | comp.unix.programmer |
| Subject | Re: Getting SOMAXCONN |
| Date | 2024-02-12 21:53 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <20240212135111.403@kylheku.com> (permalink) |
| References | <uqbtpc$170j7$1@dont-email.me> <uqd7oa$1hn3i$1@dont-email.me> <uqe02c$1mqnb$4@dont-email.me> |
On 2024-02-12, Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
> On Mon, 12 Feb 2024 13:51:06 -0000 (UTC), Lew Pitcher wrote:
>
>> On Mon, 12 Feb 2024 01:54:52 +0000, Lawrence D'Oliveiro wrote:
>>
>>> On Linux, SOMAXCONN (the maximum size of the listen queue for a socket)
>>> is not a static constant, but is a configurable kernel parameter. Here
>>> is a simple Python command to return the value for your
>>> currently-running kernel:
>>>
>>> print(int(open("/proc/sys/net/core/somaxconn",
>>> "rt").read().strip()))
>>
>> Here's the (ba)sh equivalent command:
>>
>> cat /proc/sys/net/core/somaxconn
>
> Code normally needs it as an integer.
This is the TXR Lisp interactive listener of TXR 293.
Quit with :quit or Ctrl-D on an empty line. Ctrl-X ? for cheatsheet.
TXR is light and portable; take it camping, or to the Bahamas.
1> (file-get "/proc/sys/net/core/somaxconn")
128
2> (typeof (file-get "/proc/sys/net/core/somaxconn"))
fixnum
--
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca
Back to comp.unix.programmer | Previous | Next — Previous in thread | Next in thread | Find similar
Getting SOMAXCONN Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-02-12 01:54 +0000
Re: Getting SOMAXCONN Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2024-02-12 13:51 +0000
Re: Getting SOMAXCONN gazelle@shell.xmission.com (Kenny McCormack) - 2024-02-12 15:20 +0000
Re: Getting SOMAXCONN Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-02-12 21:07 +0000
Re: Getting SOMAXCONN "James K. Lowden" <jklowden@speakeasy.net> - 2024-04-08 19:46 +0000
Re: Getting SOMAXCONN gazelle@shell.xmission.com (Kenny McCormack) - 2024-04-08 21:01 +0000
Re: Getting SOMAXCONN Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-04-08 22:27 +0000
Re: Getting SOMAXCONN Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2024-04-08 15:47 -0700
Re: Getting SOMAXCONN "James K. Lowden" <jklowden@speakeasy.net> - 2024-04-08 23:32 +0000
Re: Getting SOMAXCONN Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-02-12 20:46 +0000
Re: Getting SOMAXCONN Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2024-02-12 20:58 +0000
Re: Getting SOMAXCONN Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-02-12 21:08 +0000
Re: Getting SOMAXCONN Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2024-02-12 21:09 +0000
Re: Getting SOMAXCONN Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-02-12 21:16 +0000
Re: Getting SOMAXCONN Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2024-02-12 21:08 +0000
Re: Getting SOMAXCONN scott@slp53.sl.home (Scott Lurndal) - 2024-02-12 20:59 +0000
Re: Getting SOMAXCONN Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2024-02-12 13:51 -0800
Re: Getting SOMAXCONN Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-02-12 22:09 +0000
Re: Getting SOMAXCONN Kaz Kylheku <433-929-6894@kylheku.com> - 2024-02-12 21:53 +0000
Re: Getting SOMAXCONN Nicolas George <nicolas$george@salle-s.org> - 2024-02-12 16:38 +0000
Re: Getting SOMAXCONN Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-02-12 20:45 +0000
Re: Getting SOMAXCONN Nicolas George <nicolas$george@salle-s.org> - 2024-02-12 22:12 +0000
Re: Getting SOMAXCONN Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-02-13 01:26 +0000
Re: Getting SOMAXCONN Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-02-13 07:48 +0000
Re: Getting SOMAXCONN Nicolas George <nicolas$george@salle-s.org> - 2024-02-13 08:09 +0000
Re: Getting SOMAXCONN scott@slp53.sl.home (Scott Lurndal) - 2024-02-13 15:12 +0000
Re: Getting SOMAXCONN Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2024-02-13 15:35 +0000
Re: Getting SOMAXCONN Nicolas George <nicolas$george@salle-s.org> - 2024-02-13 16:12 +0000
Re: Getting SOMAXCONN Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-02-13 21:17 +0000
csiph-web