vertx-mqtt
vertx-mqtt copied to clipboard
Adding the handler of vertx mqtt will cause the net read / write index of metrics to be unable to be obtained normally. Addlast should be used instead of addbefore
Questions
Adding the handler of vertx mqtt will cause the net read / write index of metrics to be unable to be obtained normally. Addlast should be used instead of addbefore
Version
Which version(s) did you encounter this bug ?
Context
I encountered an exception which looks suspicious while ...
Do you have a reproducer?
A reproducer is a simple project hosted on GitHub (or another forge supporting git clone operation) that has a build file that can be executed to reproduce the issue.
Reproducers are very helpful for contributors and will likely help them fixing your bug faster.
- Link to github project/gist
Steps to reproduce
- ...
- ...
- ...
- ...
Extra
- Anything that can be relevant such as OS version, JVM version
VertxHandler : protected void reportBytesRead(Object msg) { if (msg instanceof ByteBuf) { this.reportBytesRead((long)((ByteBuf)msg).readableBytes()); }
}
MqttEncoder && MqttDecoder is before VertxHandler ,so msg is Mqtt object