Fixed issue #40
This commit is contained in:
@@ -14,6 +14,7 @@ Version 0.7:
|
|||||||
Modified the password_file format to use password stored in sha256 and not plain text
|
Modified the password_file format to use password stored in sha256 and not plain text
|
||||||
Added ACL file for topic read|write operations.
|
Added ACL file for topic read|write operations.
|
||||||
Removed cause of leakage of Netty Sessions (fix issue #39)
|
Removed cause of leakage of Netty Sessions (fix issue #39)
|
||||||
|
Cleaned Netty's stuff reference from Events used in Disruptor (fix issue #40)
|
||||||
|
|
||||||
Version 0.6:
|
Version 0.6:
|
||||||
Fix issue #42, bad password file path composition
|
Fix issue #42, bad password file path composition
|
||||||
|
|||||||
@@ -667,11 +667,15 @@ class ProtocolProcessor implements EventHandler<ValueEvent> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void onEvent(ValueEvent t, long l, boolean bln) throws Exception {
|
public void onEvent(ValueEvent t, long l, boolean bln) throws Exception {
|
||||||
MessagingEvent evt = t.getEvent();
|
try {
|
||||||
//It's always of type OutputMessagingEvent
|
MessagingEvent evt = t.getEvent();
|
||||||
OutputMessagingEvent outEvent = (OutputMessagingEvent) evt;
|
//It's always of type OutputMessagingEvent
|
||||||
LOG.debug("Output event, sending {}", outEvent.getMessage());
|
OutputMessagingEvent outEvent = (OutputMessagingEvent) evt;
|
||||||
outEvent.getChannel().write(outEvent.getMessage());
|
LOG.debug("Output event, sending {}", outEvent.getMessage());
|
||||||
|
outEvent.getChannel().write(outEvent.getMessage());
|
||||||
|
} finally {
|
||||||
|
t.setEvent(null); //free the reference to all Netty stuff
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -153,6 +153,7 @@ public class SimpleMessaging implements IMessaging, EventHandler<ValueEvent> {
|
|||||||
@Override
|
@Override
|
||||||
public void onEvent(ValueEvent t, long l, boolean bln) throws Exception {
|
public void onEvent(ValueEvent t, long l, boolean bln) throws Exception {
|
||||||
MessagingEvent evt = t.getEvent();
|
MessagingEvent evt = t.getEvent();
|
||||||
|
t.setEvent(null); //free the reference to all Netty stuff
|
||||||
LOG.info("onEvent processing messaging event from input ringbuffer {}", evt);
|
LOG.info("onEvent processing messaging event from input ringbuffer {}", evt);
|
||||||
if (evt instanceof StopEvent) {
|
if (evt instanceof StopEvent) {
|
||||||
processStop();
|
processStop();
|
||||||
|
|||||||
Reference in New Issue
Block a user