You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How would one go about closing the MySQL connection when listening to binglog events? It seems like the thread hangs when I execute MySQL.close conn. One approach that seems to be partially working is sending an empty packet to the MySQLConn input stream using Streams.unRead. However, when I run Show full processlist in MySQL, I can still see the listening thread in the process list. I have been tackling this for a week now, and I am completely lost.
Thanks in advance.
Woodson D.
The text was updated successfully, but these errors were encountered:
Do you call MySQL.close conn from another Haskell thread? Normally you would use bracket pattern to get a connection, so instead of closing a connection you should simply kill the listening thread and let the listening thread handle the connection closing.
Hi:
How would one go about closing the MySQL connection when listening to binglog events? It seems like the thread hangs when I execute
MySQL.close conn
. One approach that seems to be partially working is sending an empty packet to theMySQLConn
input stream usingStreams.unRead
. However, when I runShow full processlist
in MySQL, I can still see the listening thread in the process list. I have been tackling this for a week now, and I am completely lost.Thanks in advance.
Woodson D.
The text was updated successfully, but these errors were encountered: