提交 3eee97d7 authored 作者: Piotr Dubrovskiy's avatar Piotr Dubrovskiy

add missed protocol version check. See be2d01c8

上级 0dcc3252
...@@ -411,7 +411,9 @@ public class TcpServerThread implements Runnable { ...@@ -411,7 +411,9 @@ public class TcpServerThread implements Runnable {
case SessionRemote.SESSION_SET_ID: { case SessionRemote.SESSION_SET_ID: {
sessionId = transfer.readString(); sessionId = transfer.readString();
transfer.writeInt(SessionRemote.STATUS_OK); transfer.writeInt(SessionRemote.STATUS_OK);
transfer.writeBoolean(session.getAutoCommit()); if (clientVersion >= Constants.TCP_PROTOCOL_VERSION_15) {
transfer.writeBoolean(session.getAutoCommit());
}
transfer.flush(); transfer.flush();
break; break;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论