From 90b01d7046a10638dd9afd6fcc2559c14b87ceff Mon Sep 17 00:00:00 2001 From: Michael Nolan Date: Fri, 17 Mar 2023 09:01:15 -0500 Subject: [PATCH] hopefully fix mutex.release --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.md b/README.md index 5610deb..bbc4068 100644 --- a/README.md +++ b/README.md @@ -130,3 +130,22 @@ Ooui is open source and I love merging PRs. Please fork away, and please obey th ## Why I ported this library to Tesses.WebServer Well so this would work on mono (mono to my knowledge doesn't support System.Net.WebSockets) and I would like to integrate this library into my webserver + +## This still does not work with mono (returns this only on mono, in net6.0 its fine) +Failed to send queued messages, aborting session: System.AggregateException: One or more errors occurred. (Mutex is not owned) ---> System.ApplicationException: Mutex is not owned + at System.Threading.Mutex.ReleaseMutex () [0x0000d] in :0 + at (wrapper remoting-invoke-with-check) System.Threading.Mutex.ReleaseMutex() + at Tesses.WebServer.WebSocket.WebSocketServer.SendMessageAsync (Tesses.WebServer.WebSocket.WebSocketMessage msg) [0x001cb] in :0 + at Tesses.WebServer.WebSocketExtensions+<>c__DisplayClass2_2.b__6 () [0x00072] in :0 + --- End of inner exception stack trace --- + at System.Threading.Tasks.Task.ThrowIfExceptional (System.Boolean includeTaskCanceledExceptions) [0x00011] in :0 + at System.Threading.Tasks.Task.Wait (System.Int32 millisecondsTimeout, System.Threading.CancellationToken cancellationToken) [0x00043] in :0 + at System.Threading.Tasks.Task.Wait () [0x00000] in :0 + at Tesses.WebServer.WebSocketExtensions+<>c__DisplayClass2_1.b__4 (Tesses.WebServer.WebSocket.WebSocketMessage mm) [0x00023] in :0 + at Ooui.WebSocketSession.TransmitQueuedMessages () [0x00050] in <3f1f33bf6fb4419491d2271f7e0005d9>:0 +---> (Inner Exception #0) System.ApplicationException: Mutex is not owned + at System.Threading.Mutex.ReleaseMutex () [0x0000d] in :0 + at (wrapper remoting-invoke-with-check) System.Threading.Mutex.ReleaseMutex() + at Tesses.WebServer.WebSocket.WebSocketServer.SendMessageAsync (Tesses.WebServer.WebSocket.WebSocketMessage msg) [0x001cb] in :0 + at Tesses.WebServer.WebSocketExtensions+<>c__DisplayClass2_2.b__6 () [0x00072] in :0 <--- +