vertx-mqtt icon indicating copy to clipboard operation
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

Open 1ssqq1lxr opened this issue 2 years ago • 1 comments

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

  1. ...
  2. ...
  3. ...
  4. ...

Extra

  • Anything that can be relevant such as OS version, JVM version

1ssqq1lxr avatar Apr 02 '22 01:04 1ssqq1lxr

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

1ssqq1lxr avatar Apr 02 '22 11:04 1ssqq1lxr