Article View: alt.comp.lang.rust
Article #496Re: “The end of software secrecy is almost upon us”
From: Chris M. Thomasson
Date: Tue, 03 Nov 2026 05:11
Date: Tue, 03 Nov 2026 05:11
30 lines
3125 bytes
3125 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. > These are for high performance systems. But, they solve a lot of problems. Say your program starts to gain a lot of users?
Technical Details
Message-ID:
<11cbqdb$3ft6j$2@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-mailReferences:
<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:11:05 -0800 Organization: A noiseless patient Spider Lines: 30 Message-ID: <11cbqdb$3ft6j$2@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:11:07 +0000 (UTC) Injection-Info: dont-email.me; logging-data="3667155"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18SQqC8oiOlG3EFjLsoVXNT74V68f84Q/A="; posting-host="864fa6eb4028aacb9ae2f3445ca90fed" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:9NBnpyzK4WuXDt2U1amBHZ3YKls= sha256:RlNGWkzFeSV2y6oPTp83ehjkMKd779JZBHltsNuaWcs= sha1:gEzMovjy/VZLlTOxgTW5s3SGETM= sha256:xcs87QJtrjM/5xSPm7k+gbz6OLB/ilvuccO03lg/yKs= In-Reply-To: <ESbGS.128743$Gau3.81383@fx14.iad> Content-Language: en-US