Closed NikLeberg closed 3 years ago
Lock sendBuff whenever the server sends something to the client so frames don't get written to the wrong position in the buffer. Caution: Functions cgiWebsocketSend() & cgiWebsocketClose() now possibly block. Fixes issue #84
It looks OK. I will get around to testing it some and merge it. Thanks!
For esp32 this should be fine. Mutexes are recursive. The posix implementation doesn't use recursive mutexes, however.
Lock sendBuff whenever the server sends something to the client so frames don't get written to the wrong position in the buffer. Caution: Functions cgiWebsocketSend() & cgiWebsocketClose() now possibly block. Fixes issue #84