-
Notifications
You must be signed in to change notification settings - Fork 61
Fix SSE #156
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
Fix SSE #156
Conversation
TienHuyIoT
commented
Apr 12, 2025
- Avoid self-deadlock by using recursive mutex.
- Add test case for example ServerSentEvents.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
Comments suppressed due to low confidence (1)
src/AsyncEventSource.cpp:405
- Typographical error: 'insteads' should be corrected to 'instead'.
* @brief: Fix self-deadlock by using recursive_mutex insteads of mutex.
@TienHuyIoT did you look also at the websocket code that is similar ? Maybe the same issue is there ? |
Yes, they are almost the same. |
- Roll back the example ServerSendEvents.ino to its original. - Create a new example for the pull request ESP32Async#156
Do you mind adding a commit for websocket also ? |
Could you please explain your concern in more detail? I'm willing to help, but I don't fully understand your request. |
I was asking if the same kind of deadlock could occur in the n websocket code with the use of normal mutexes in in websocket code, and if yes, if you could take the opportunity to also fix the websocket code. But that's just a question - not something you need to do if you do not want to |
Thanks for your explanation! |
@TienHuyIoT : thanks a lot! |
- Avoid self-deadlock by using recursive mutex. - Create a new example for the pull request ESP32Async#156
I took the liberty to update this PR and rebase it on top of main and fix the websocket commits that were still there due to a missing rebase |
@me-no-dev @vortigont : this PR is good to go for me. Can you please have a look ? |