canonical / dqlite

Embeddable, replicated and fault-tolerant SQL engine.
https://dqlite.io
Other
3.83k stars 216 forks source link

Handle INTERRUPT request #485

Open cole-miller opened 1 year ago

cole-miller commented 1 year ago

Currently this code in conn.c prevents us from properly handling INTERRUPT requests:

https://github.com/canonical/dqlite/blob/165472451d04e7fc12d5a360d2bd43339768a300/src/conn.c#L34-L40

We should fix that.

roddas commented 10 months ago

@MathieuBordere @cole-miller Do you think that signal handling would fix this? Eg: Handling SIGABRT signal.

cole-miller commented 10 months ago

@roddas Signal handling is not implicated here -- we're talking about how dqlite servers should handle a specific message that clients can send, not SIGINT or anything like that.

roddas commented 10 months ago

Oh, I got it . So I was wrong . Sorry about that.