Skip to content
Snippets Groups Projects
Commit 38e91934 authored by Subrata Banerjee's avatar Subrata Banerjee
Browse files

Use msglist for write to switch for async requests.

parent baaf2e56
No related branches found
No related tags found
No related merge requests found
......@@ -279,7 +279,9 @@ public class OFSwitchImpl implements IOFSwitch {
int transId = getNextTransactionId();
request.setXid(transId);
this.iofMsgListenersMap.put(transId, caller);
this.channel.write(request);
List<OFMessage> msglist = new ArrayList<OFMessage>(1);
msglist.add(request);
this.channel.write(msglist);
return transId;
}
......@@ -294,7 +296,7 @@ public class OFSwitchImpl implements IOFSwitch {
this.channel.write(msglist);
return future;
}
@Override
public void deliverStatisticsReply(OFMessage reply) {
OFStatisticsFuture future = this.statsFutureMap.get(reply.getXid());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment