This commit is contained in:
Redkale
2017-04-30 19:25:13 +08:00
parent d9f50d63f0
commit 027fa3a18b

View File

@@ -372,7 +372,7 @@ public final class SncpClient {
if (action.addressSourceParamIndex >= 0) params[action.addressSourceParamIndex] = this.clientAddress;
final BsonWriter writer = bsonConvert.pollBsonWriter(transport.getBufferSupplier()); // 将head写入
writer.writeTo(DEFAULT_HEADER);
for (int i = 0; i < myparamtypes.length; i++) { //params 可能包含: 3 个 boolean
for (int i = 0; i < params.length; i++) { //params 可能包含: 3 个 boolean
bsonConvert.convertTo(writer, AsyncHandler.class.isAssignableFrom(myparamclass[i]) ? AsyncHandler.class : myparamtypes[i], params[i]);
}
final int reqBodyLength = writer.count() - HEADER_SIZE; //body总长度