Closed fleaz closed 5 years ago
I'm sorry for the delay -- I've been quite busy with IRL issues. Generally speaking, I haven't done too much testing in regards to sending things outside of the main callback event loops (e.g. Add()
, AddBg()
). This is in fact a bug -- not quite sure how I want to solve it yet though.
I'm very late to getting this resolved, sorry about that. I see you found a workaround, though let me know if you see any further issues. I was putting off, thinking it was going to be quite a bit of a rewrite to resolve, but looks like it was specifically related to ratelimiting (and thus much easier to fix).
Hi,
I'm using the girc library in one of my projects and just added some code from the girc examples to reconnecting to the IRC server. This works perfectly fine and when the connection is lost, he reconencts automatically after the given delay. But the problem is, that when a other goroutine tries to call e.g.
Cmd.Message()
to send something during the time between the connection is lost and girc reconnects, it ends up with a SIGSEGV and crashes. See the attached stacktraceI'm not sure if this is a library problem of girc or if I should catch this and don't use the client during reconenction.
Please let me know if you need more informations to debug this.
Best regards, Felix