[GH-ISSUE #601] [Bug]: tcp_transport_install_failed "Address already in use" #200

Closed
opened 2026-10-29 21:10:48 +00:00 by bsakaguchi · 0 comments
Owner

Originally created by @ykwd on GitHub (Jul 8, 2025).
Original GitHub issue: https://github.com/kvcache-ai/Mooncake/issues/601

Originally assigned to: @alogfans on GitHub.

Bug Report

When the protocol is set as tcp, there is a small chance that the TcpTransport::install will fail with the following error:

[client.cpp:196] tcp_transport_install_failed error_message="bind: Address already in use"

The root cause is the following code:

int tcp_port = meta->localRpcMeta().rpc_port + 1;

Although the meta's rpc_port is set by findAvailableTcpPort, it does not indicate the rpc_port + 1 is also available.

Before submitting...

  • Ensure you searched for relevant issues and read the [documentation]
Originally created by @ykwd on GitHub (Jul 8, 2025). Original GitHub issue: https://github.com/kvcache-ai/Mooncake/issues/601 Originally assigned to: @alogfans on GitHub. ### Bug Report When the protocol is set as tcp, there is a small chance that the TcpTransport::install will fail with the following error: > [client.cpp:196] tcp_transport_install_failed error_message="bind: Address already in use" The root cause is the following code: > int tcp_port = meta->localRpcMeta().rpc_port + 1; Although the meta's `rpc_port` is set by `findAvailableTcpPort`, it does not indicate the `rpc_port + 1` is also available. ### Before submitting... - [ ] Ensure you searched for relevant issues and read the [documentation]
bsakaguchi 2026-10-29 21:10:48 +00:00
  • closed this issue
  • added the
    bug
    label
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
kvcache-ai/Mooncake#200
No description provided.