-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Helpers.cs #96
Conversation
pur3extreme
commented
May 16, 2024
- Dispose of the response
- ConfigureAwait(false) the response so it won't have a chance to deadlock the application
- Dispose of the response - ConfigureAwait(false) the response so it won't have a chance to deadlock the application
Interesting! I'm assuming you're seeings some deadlocks in your application code @pur3extreme? Was doing a little research and came across this microsoft devblog:
Looks like this is a little change that should be made on practically all of the C# libraries... |
Thanks @pur3extreme! |
@acupofjose I had recently moved over to Supabase from a previously synchronous backend - This a Unity application with around 50 concurrent users after about 24-48 hours of operation the server would deadlock. Yes, ConfigureAwait(false) should be used where possible in every library - Postgress is the only Supabase library that I really use so its the only one I looked into |
@pur3extreme just to clarify, are you running Supabase inside of a Unity build that's acting as a server app? |
@wiverson Yes, its a game server, so sharing the same code base as the client is extremely convenient. |
Ah. Are you using the stateful client on both the Unity game client and the Unity server? FWIW you might want to focus on the stateless API calls for the server-side, basically the config as described at https://github.com/supabase-community/supabase-csharp/wiki/Server-Side-Applications |