🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.comp.lang.rust
Article #497

Re: “The end of software secrecy is almost upon us”

#497
From: Charlie Gibbs
Date: Tue, 03 Nov 2026 07:15
43 lines
3268 bytes
On 2026-11-03, Chris M. Thomasson <chris.m.thomasson.1@gmail.com> wrote:

> On 11/2/2026 6:42 PM, Charlie Gibbs wrote:
>
>> On 2026-11-02, Chris M. Thomasson <chris.m.thomasson.1@gmail.com> wrote:
>> 
>>> On 11/1/2026 11:40 AM, Charlie Gibbs wrote:
>>>
>>>> I was already setting the socket to non-blocking before calling
>>>> connect() - and yet there were times when the API blocked anyway.
>>>> I never did figure out why, and we had a customer getting impatient,
>>>> so I just spun off another thread and moved on to other things.
>>>
>>> connect? On Windows we use ConnectEx.
>>>
>>> https://learn.microsoft.com/en-us/windows/win32/api/mswsock/nc-mswsock-lpfn_connectex
>>>
>>> For accept, AcceptEx:
>>>
>>> https://learn.microsoft.com/en-us/windows/win32/api/mswsock/nf-mswsock-acceptex
>> 
>> Ah, but then we come to that critical clause:
>> 
>> Note  This function is a Microsoft-specific extension to the Windows Sockets specification.
>> 
>> Yes, one more attempt to close the open socket model with
>> Microsoft proprietary extensions.  My code has to run under
>> Linux as well.  Opening the socket in a separate thread is
>> guaranteed to avoid hangs, regardless of operating system.
>
> These are for high performance systems. But, they solve a lot of 
> problems. Say your program starts to gain a lot of users?

In our environment that should never happen.  The only legitimate
users are those that are other elements of our software package.
Any others (or too many seemingly legitimate users) get a rejection
message, followed by disconnection.

-- 
/~\  Charlie Gibbs                  |  In this world there are
\ /  <cgibbs@kltpzyxm.invalid>      |  two kinds of people:
 X   I'm really at ac.dekanfrus     |  1. Those who can extrapolate
/ \  if you read it the right way.  |  from incomplete data.
Technical Details
Message-ID: <_RfGS.60038$Zy1.54649@fx05.iad>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!npeer.as286.net!npeer-ng0.as286.net!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx05.iad.POSTED!not-for-mail
References: <11amvre$15far$1@dont-email.me> <20261030005434.00005458@yahoo.com> <11c0v1j$her$1@reader2.panix.com> <20261030105900.000020ce@yahoo.com> <11c1uqd$keq$1@reader2.panix.com> <11c2fcl$19bk2$1@dont-email.me> <11c2rla$hko3$2@dont-email.me> <11c362o$lfc1$1@dont-email.me> <hWdFS.111353$cLL5.22363@fx42.iad> <11c3uqi$rrul$1@dont-email.me> <sAMFS.70974$%ZO1.16046@fx13.iad> <11cb51b$3a1ce$5@dont-email.me> <ESbGS.128743$Gau3.81383@fx14.iad> <11cbqdb$3ft6j$2@dont-email.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!npeer.as286.net!npeer-ng0.as286.net!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx05.iad.POSTED!not-for-mail
Newsgroups: comp.lang.fortran,comp.lang.c++,alt.comp.lang.rust,alt.folklore.computers
From: Charlie Gibbs <cgibbs@kltpzyxm.invalid>
Subject: Re: “The end of software secrecy is almost upon
 us”
References: <11amvre$15far$1@dont-email.me>
 <20261030005434.00005458@yahoo.com> <11c0v1j$her$1@reader2.panix.com>
 <20261030105900.000020ce@yahoo.com> <11c1uqd$keq$1@reader2.panix.com>
 <11c2fcl$19bk2$1@dont-email.me> <11c2rla$hko3$2@dont-email.me>
 <11c362o$lfc1$1@dont-email.me> <hWdFS.111353$cLL5.22363@fx42.iad>
 <11c3uqi$rrul$1@dont-email.me> <sAMFS.70974$%ZO1.16046@fx13.iad>
 <11cb51b$3a1ce$5@dont-email.me> <ESbGS.128743$Gau3.81383@fx14.iad>
 <11cbqdb$3ft6j$2@dont-email.me>
User-Agent: slrn/1.0.3 (Linux)
Lines: 43
Message-ID: <_RfGS.60038$Zy1.54649@fx05.iad>
X-Complaints-To: https://www.astraweb.com/aup
NNTP-Posting-Date: Tue, 03 Nov 2026 07:15:06 UTC
Date: Tue, 03 Nov 2026 07:15:06 GMT
X-Received-Bytes: 2959