2 comments (2 comments)0 reactions (0 reactions)0 assignees (0 assignees)Java3,443 stars (3,443 stars)723 forks (723 forks)batch import
help wanted
Description
设备固定ip,http服务设置此IP启动成功后,通过拔网线的方式,设备的固定ip丢失,但是http服务没有异常或停止回调,此时状态还是running状态,客户端已经没法访问此服务了。
Contributor guide
- Tech stack
- javaandroid
- Domain
- backendmobile
- Issue type
- bug
- DifficultyEstimated implementation difficulty for a new contributor, from 1 for very small changes to 5 for expert-level work.
- 3
- Estimated timeA rough time range for an experienced contributor to investigate, implement, test, and prepare a pull request.
- 1-3 hours
- Activity statusHow available the issue appears right now: fresh, active, stale, blocked, or waiting on maintainer input.
- fresh
- ClarityHow clearly the issue explains the expected change, acceptance criteria, and next step.
- mostly clear
- Prerequisites
- JavaAndroid network state detection
- Newbie friendlinessA 1-100 score estimating how approachable this issue is for first-time contributors.
- 40
- Research direction
- The issue requests a callback when the underlying HTTP server loses network connectivity. Investigate how AndServer currently monitors network state. The likely approach is to register a ConnectivityManager.NetworkCallback in the AndroidService class. Check existing code for network state handling (e.g., NetworkStateReceiver). Examine comments on this issue for suggested implementation details. Ensure the callback is triggered when the network disconnects and the IP is lost, and provide a graceful shutdown or notification to the user.