I didn't put any mutex in this example but I'm using them in my program.
A mutex for the SendNetworkString() is this example wouldn't fix the problem (there is only one Send and no competitive access).
atomic web server threads
Re: atomic web server threads
Windows 11 Pro x64
PureBasic 6.30 x64
PureBasic 6.30 x64
Re: atomic web server threads
I'll take a look in the morning if I get time.
Re: atomic web server threads
I don't see any issue with your test example on windows PB6.30 x64. The send in the thread doesn't crash it
Re: atomic web server threads
At the first start of the server there is no crash, SendNetworkString() return -1. But if you retry (stop/start the server), you should have a crash.
I'm not using TLS.
I'm not using TLS.
Windows 11 Pro x64
PureBasic 6.30 x64
PureBasic 6.30 x64
Re: atomic web server threads
I can't get it to crash at all.tatanas wrote: Thu Jan 29, 2026 7:59 am At the first start of the server there is no crash, SendNetworkString() return -1. But if you retry (stop/start the server), you should have a crash.
I'm not using TLS.

