This commit is contained in:
Redkale
2020-06-04 20:14:16 +08:00
parent 6261232ce6
commit b4f7de4858
2 changed files with 2 additions and 1 deletions

View File

@@ -159,6 +159,7 @@ public abstract class MessageAgent {
} }
message.setFormat(ConvertType.BSON); message.setFormat(ConvertType.BSON);
message.setResptopic(generateSncpRespTopic()); message.setResptopic(generateSncpRespTopic());
getProducer().apply(message);
return this.sncpRespProcessor.createFuture(message.getSeqid(), counter); return this.sncpRespProcessor.createFuture(message.getSeqid(), counter);
} }

View File

@@ -119,7 +119,7 @@ public final class SncpDynServlet extends SncpServlet {
if (action == null) { if (action == null) {
response.finish(SncpResponse.RETCODE_ILLACTIONID, null); //无效actionid response.finish(SncpResponse.RETCODE_ILLACTIONID, null); //无效actionid
} else { } else {
BsonWriter out = action.convert.pollBsonWriter(bufferSupplier); BsonWriter out = bufferSupplier == null ? action.convert.pollBsonWriter() : action.convert.pollBsonWriter(bufferSupplier);
out.writeTo(DEFAULT_HEADER); out.writeTo(DEFAULT_HEADER);
BsonReader in = action.convert.pollBsonReader(); BsonReader in = action.convert.pollBsonReader();
SncpAsyncHandler handler = null; SncpAsyncHandler handler = null;