Please sign in to comment.
Don't remove IOLoop handler of a connection on every IO callback.
Instead, add handler at the start of an operation (e.g. opening a connection, or executing an SQL query), update the handler everything an event occurs (reading and writing) and remove the handler when the operation is done or when an error occurs.
- Loading branch information...