🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c++
Article #657

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

#657
From: Chris M. Thomasson
Date: Tue, 03 Nov 2026 05:09
30 lines
2973 bytes
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.
> 

Well, on Linux we have aio or io_uring. The latter is more low level 
than the Windows IOCP.
Technical Details
Message-ID: <11cbq9f$3ft6j$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.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>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com>
Newsgroups: comp.lang.fortran,comp.lang.c++,alt.comp.lang.rust,alt.folklore.computers
Subject: Re: “The end of software secrecy is almost upon us”
Date: Mon, 2 Nov 2026 21:09:02 -0800
Organization: A noiseless patient Spider
Lines: 30
Message-ID: <11cbq9f$3ft6j$1@dont-email.me>
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>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 03 Nov 2026 05:09:04 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="3667155"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18H02fExufdTlmvBaLyFCLugl7h03D11Y8="; posting-host="864fa6eb4028aacb9ae2f3445ca90fed"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:THZ1rQ6yNpJs1ztME6ut/4Grwkw= sha256:+aCkaF8tUJky0w/jGxkem1E9y1Lg9uElhzgl4ydMHNY=
	sha1:P1gf7s7E3NDiMmE0lwRJE49D5GI= sha256:QBQ8DFeatoaBEKtIzCzeRMiuvKAS4c1K/uTnhlnaOnU=
In-Reply-To: <ESbGS.128743$Gau3.81383@fx14.iad>
Content-Language: en-US