Closed sruehl closed 7 months ago
As a note on a possible option to have a handle in the future. There could be a global DeferFunc
which you can set and then a User of the library can use this to recover from panics in Goroutines spamed by signalR
@philippseith this is a bit urgent because as I wrote this brings the process down at the moment. So either merge #192 and I rebase #191 on it or merge #191 directly and get user feedback on potential bugs. At the moment I have a local replace directive on #192 which seems to not always work and when it falls back to current master it crashes my process as described in the OP
~One thing I’ve noticed could be that the analysis might be wrong because that NPE could also be the result of a missing default branch~ Edit: fixed in latest commit in #192
When hitting a server which reports that it wants to use WebTransports signalR brings down the whole process due to a programming error. This error can't be gracefully handled as it is a panic within a Goroutine singalR spawns.
Edit: the stack above came actually when trying to connect to a old server. However in both cases the panic is the same