-
domag02
hi!
-
domag02
I did some research on this issue: 15316 listen(fd, -1) should give maximum backlog, not minimum
-
domag02
And I still don't understand why we should adapt to this "mistake" (backlog < 0 => maximum backlog).
-
domag02
Can someone please explain to me why it is necessary to change the default (and standard) behavior of the system instead of just fixing the emulation (in lx-brand)?
-
domag02
Even FreeBSD tried to fix this: D31821 Improve POSIX compliance of listen()
-
domag02
-
jclulow
domag02: I think it's pretty clear that POSIX is not, in 2023, alway the most relevant standard
-
jclulow
domag02: The last comment in that FreeBSD review thread is pretty relevant. The POSIX recommendation in this case does not mesh with what software is frequently expecting to occur; most open source software development primarily targets Linux and perhaps a BSD.
-
domag02
jclulow: but it is not even compatible with LSB (Linux Standards Base)
-
jclulow
Can you give a reference for that behaviour?
-
domag02
jclulow: for what OS?
-
jclulow
"not even compatible with LSB"
-
domag02
jclulow: OK
-
jclulow
Are you saying we are not moving towards the Linux behaviour? I had thought that was the point of the bug
-
domag02
jclulow: *Linux is not compatible with LSB (in regard of listen() behaviour)
-
jclulow
It feels, perhaps, like LSB is not that relevant either then!
-
jclulow
It doesn't really matter what's in a standard if the software people want to run works another way, unfortunately.
-
jclulow
illumos.org/issues/15316 suggests we are at odds with Linux and two popular BSDs
-
fenix
→
BUG 15316: listen(fd, -1) should give maximum backlog, not minimum (New) |
code.illumos.org/c/illumos-gate/+/2598
-
domag02
jclulow: to me it looks more like a userspace programming error and not the "new standard", because there is also a standard (and portable) way of doing this with INT_MAX as backlog
-
jclulow
The problem with things like this is that you have to prioritise how you spend the rest of your life. I am not personally interested in POSIX or any other standard _for its own sake_, but where it is a helpful tool, we're on board. If the prevailing wind is a behaviour that is not _exactly_ what the standard says, but frankly not actually outlawed by wishy-washy language, helps more software
-
jclulow
work without patches, then I think it is worth considering.
-
jclulow
We also haven't landed the patch, we're looking at it and what impact it might have.
-
jclulow
You have to understand though, that if you do something intentionally different from both Linux and Free/Open/NetBSD, that you're signing up for a crusade of open source letter writing forever to try and get small patches into each new body of software you want to use.
-
jclulow
I have written a lot of letters! I will no doubt write many more. It is exhausting, and sometimes it is easier to fix things on our end where it will have otherwise little to no impact on people.
-
domag02
jclulow: NetBSD has implemented the POSIX behavior.
-
domag02
-
danmcd
@tsoome_ "...that page turned" ===> gcc10-by-default? (Sorry, LimeChat's history is low, and I *think* that's what you meant by consulting log.omnios.org...)
-
tsoome_
yes, gcc10:)
-
gitomat
[illumos-gate] 15283 head: remove pragma ident -- Toomas Soome <tsoome⊙mc>