Skip to content

Commit

Permalink
1.0.7 2017.1.10
Browse files Browse the repository at this point in the history
1.修复killChannel的问题
2.修复读取数据递归问题
  • Loading branch information
brucexx committed Jan 10, 2017
1 parent 1d41dfc commit 14431f2
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ private void handleRowData(RouteResultsetNode rrn, BlockingSession ss, MySQLChan
final ServerConnection sc = ss.getSource();
this.packetId = id;
BinaryPacket bin = null;
int size = 0;
// int size = 0;
try {
for (;;) {
bin = mc.receive();
Expand Down Expand Up @@ -328,11 +328,11 @@ private void handleRowData(RouteResultsetNode rrn, BlockingSession ss, MySQLChan
default:
bin.packetId = ++packetId;// ROWS
bb = bin.write(bb, sc);
size += bin.packetLength;
if (size > RECEIVE_CHUNK_SIZE) {
handleNext(rrn, ss, mc, bb, packetId);
return;
}
// size += bin.packetLength;
// if (size > RECEIVE_CHUNK_SIZE) {
// handleNext(rrn, ss, mc, bb, packetId);
// return;
// }
}
}
} catch (IOException e) {
Expand Down

0 comments on commit 14431f2

Please sign in to comment.