|
|
|
@ -404,7 +404,7 @@ public class MySqlUtils {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static long getLastPacketReceivedTimeMs(Connection conn) throws SQLException { |
|
|
|
|
// durid监控若开启,Connection 对象是 ConnectionProxy ,且ConnectionProxy和Connection不是一个同一个类加载器
|
|
|
|
|
// durid监控若开启,Connection 对象是 ConnectionProxy ,且ConnectionProxy和Connection不一定在同一个类加载器下
|
|
|
|
|
ClassLoader cl; |
|
|
|
|
if (conn instanceof ConnectionProxy) { |
|
|
|
|
cl = ((ConnectionProxy) conn).getRawObject().getClass().getClassLoader(); |
|
|
|
|