🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#494
From: Charlie Gibbs
Date: Tue, 03 Nov 2026 02:42
31 lines
2558 bytes
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.

-- 
/~\  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: <ESbGS.128743$Gau3.81383@fx14.iad>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx14.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>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx14.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>
User-Agent: slrn/1.0.3 (Linux)
Lines: 31
Message-ID: <ESbGS.128743$Gau3.81383@fx14.iad>
X-Complaints-To: https://www.astraweb.com/aup
NNTP-Posting-Date: Tue, 03 Nov 2026 02:42:44 UTC
Date: Tue, 03 Nov 2026 02:42:44 GMT
X-Received-Bytes: 2244