Code Review
/
openflowjava.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
BUG-3219: Throw away message as soon as we send it out
[openflowjava.git]
/
openflow-protocol-impl
/
src
/
main
/
java
/
org
/
opendaylight
/
openflowjava
/
protocol
/
impl
/
core
/
connection
/
OutboundQueueImpl.java
diff --git
a/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/core/connection/OutboundQueueImpl.java
b/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/core/connection/OutboundQueueImpl.java
index c9c28c16769cdbf4a498bf92f37de0e1ea447971..2433637f1bbc72148c89dafec2d38965f76d6759 100644
(file)
--- a/
openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/core/connection/OutboundQueueImpl.java
+++ b/
openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/core/connection/OutboundQueueImpl.java
@@
-66,6
+66,9
@@
final class OutboundQueueImpl implements OutboundQueue {
this.baseXid = baseXid;
this.endXid = baseXid + queue.length;
this.reserve = queue.length - 1;
this.baseXid = baseXid;
this.endXid = baseXid + queue.length;
this.reserve = queue.length - 1;
+ }
+
+ void retire() {
for (OutboundQueueEntry element : queue) {
element.reset();
}
for (OutboundQueueEntry element : queue) {
element.reset();
}
@@
-231,7
+234,7
@@
final class OutboundQueueImpl implements OutboundQueue {
return null;
}
return null;
}
- final OfHeader msg = entry.
get
Message();
+ final OfHeader msg = entry.
take
Message();
flushOffset++;
if (msg != null) {
return msg;
flushOffset++;
if (msg != null) {
return msg;