Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

EOFException #811

koala775 started this conversation in General
Jul 19, 2022 · 1 comments · 2 replies
Discussion options

  • RabbitMQ version:3.6.5
  • Erlang version:19.2
  • Option:
    When i start java client ,there's no exception ,but when send message trow a exception:
    com.rabbitmq.client.AlreadyClosedException:connection is already closed due to connection error;cause:java.io.EOFException.
    So,I restart my java client,it's ok.
You must be logged in to vote

Replies: 1 comment 2 replies

Comment options

Client libraries cannot avoid I/O exceptions, it's a natural part of distributed system operations.
Java client has an automatic recovery feature that helps in most cases.

See server logs to learn more about what may be going on (or at least what the server observes),
e.g. connection failures or missed heartbeats or proxy side-effects (if applicable).

FYI, RabbitMQ 3.6 has reached end of life in May 2018, so over four years ago. Time to move on beyond the One True RabbitMQ Version.

You must be logged in to vote
2 replies
Comment options

Thank for you replaying.I have saw the server's log:
client unexpectedly closed TCP connection.
is reason cause the client closed TCP connection.

Comment options

This is covered in the connection lifecycle events. RabbitMQ observers that the client abruptly closes TCP connection, while the client observes an EOF (and I/O exception). My guess is that you have a proxy with lower inactivity timeouts than the heartbeat interval and a lower (but not too low, see the guide) heartbeat timeout might help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Converted from issue

This discussion was converted from issue #810 on July 19, 2022 08:09.

AltStyle によって変換されたページ (->オリジナル) /