Page 11 of 11

Re: atomic web server threads

Posted: Wed Jan 28, 2026 9:49 am
by tatanas
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).

Re: atomic web server threads

Posted: Wed Jan 28, 2026 10:00 am
by idle
I'll take a look in the morning if I get time.

Re: atomic web server threads

Posted: Wed Jan 28, 2026 9:54 pm
by idle
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

Posted: Thu Jan 29, 2026 7:59 am
by tatanas
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.

Re: atomic web server threads

Posted: Thu Jan 29, 2026 9:41 pm
by idle
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.
I can't get it to crash at all. :?