happyfish100 / happyfish100/fastdfs-client-java

获取storageServer 连接失败connect to server 127.0.0.1:23000 fail, emsg:Connection refused: connect

Open
#102 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
1.6k
Forks
891
PR merge metrics
No merged PRs in 30d

Description

ip_addr = new String(pkgInfo.body, ProtoCommon.FDFS_GROUP_NAME_MAX_LEN, ProtoCommon.FDFS_IPADDR_SIZE - 1).trim()
这段代码获取的IP地址特殊网络是错误的IP地址

FDFS server用最新版本v6.9.2, 指定tracker_server = 0.0.0.0:22122时,这个ip_addr返回的始终是127.0.0.1,tracker_server 必须指定固定ip地址,ip_add才能正确返回storage服务器地址。

Originally posted by @luckytao in https://github.com/happyfish100/fastdfs-client-java/issues/101#issuecomment-1368148605

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the code that assigns ip_addr from pkgInfo.body using ProtoCommon.FDFS_IPADDR_SIZE and review how the tracker response is parsed. Reproduce the case with FastDFS v6.9.2 and tracker_server set to 0.0.0.0:22122, then compare it with a fixed tracker address. Done means the client receives the correct storage-server address without requiring a fixed tracker IP.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
distributed-systems, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.