There are changes made to the actual mysql driver when using pooled connections:
mysqljs/mysql#537
Perhaps it is necessary to change con.end() to con.release() because of this warning:
Calling conn.end() to release a pooled connection is deprecated. In next version calling conn.end() will be restored to default conn.end() behavior. Use conn.release() instead.
thx Jens