vert-x3 / vertx-stomp

STOMP client/server implementation
Apache License 2.0
31 stars 28 forks source link

The server send an error frame, then the client occur exception "Size must be > 0" #90

Open eternalirons opened 1 year ago

eternalirons commented 1 year ago

Questions

The server send an error frame, then the client occur exception "Size must be > 0"

Version

4.4.3~4.4.5

Context

I encountered an exception which looks suspicious while a connection has connected, the client sends a stomp frame again, then the server will send an error frame with empty body. However , error frame will be "content-length" head, and the value is 0 because of empty body, then while the client read the error frame will occur an exception "java.lang.IllegalArgumentException: Size must be > 0", because content length is 0. image image image

Steps to reproduce

  1. The client has connected to the server.
  2. The client send stomp frame again.
  3. The client occur exception "Size must be > 0".