8000 network enhanecment / refactor by ym · Pull Request #361 · jetkvm/kvm · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

network enhanecment / refactor #361

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 27 commits into from
Apr 15, 2025
Merged

network enhanecment / refactor #361

merged 27 commits into from
Apr 15, 2025

Conversation

ym
Copy link
Contributor
@ym ym commented Apr 15, 2025

UI/UX Improvements

  • Added cloud connection status indicators on the display screen (NotConfigured, Connecting, Connected, Disconnected)
  • Implemented a new Networking Tab
image

Core Features

  • mDNS: Refactored into a separate package with user configuration options
  • Time Synchronization:
    • Moved to a separate package with user configuration options
    • Added performance metrics to monitor synchronization status
    • Implemented parallel request capability to improve boot speed
    • Added RTC clock support for time persistence during reboots (Note: current hardware lacks battery backup, so time will reset after power loss)

Developer Tools

  • Integrated Google's pprof endpoints for performance profiling
  • Created a streaming log viewer using Server-Sent Events (SSE) at /developer/log-stream

Copy link
Contributor
@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 72 out of 74 changed files in this pull request and generated no comments.

Files not reviewed (2)
  • dev_deploy.sh: Language not supported
  • go.mod: Language not supported
Comments suppressed due to low confidence (2)

internal/confparser/confparser.go:208

  • The type assertion f.CurrentValue.(reflect.Value) assumes that f.CurrentValue is always a reflect.Value when delegated. This may lead to a runtime panic if the assumption is violated. Consider adding a type check or handling cases where f.CurrentValue is not a reflect.Value.
if required && f.Delegated { if err := setDefaultsAndValidate(f.CurrentValue.(reflect.Value).Interface(), false); err != nil {

display.go:182

  • [nitpick] The parameter name 'shouldWakeDisplay' could be made clearer by adding a comment to explain when waking the display is desired. This helps improve code readability and maintainability.
func requestDisplayUpdate(shouldWakeDisplay bool) {

@ym ym merged commit 189b843 into jetkvm:dev Apr 15, 2025
4 checks passed
@jpaveg
Copy link
jpaveg commented May 3, 2025

Any idea when this will make it to release?

@ym ym mentioned this pull request Jun 12, 2025
ym added a commit to ym/jetkvm-kvm that referenced this pull request Jun 13, 2025
* chore(network): improve connectivity check

* refactor(network): rewrite network and timesync component

* feat(display): show cloud connection status

* chore: change logging verbosity

* chore(websecure): update log message

* fix(ota): validate root certificate when downloading update

* feat(ui): add network settings tab

* fix(display): cloud connecting animation

* fix: golintci issues

* feat: add network settings tab

* feat(timesync): query servers in parallel

* refactor(network): move to internal/network package

* feat(timesync): add metrics

* refactor(log): move log to internal/logging package

* refactor(mdms): move mdns to internal/mdns package

* feat(developer): add pprof endpoint

* feat(logging): add a simple logging streaming endpoint

* fix(mdns): do not start mdns until network is up

* feat(network): allow users to update network settings from ui

* fix(network): handle errors when net.IPAddr is nil

* fix(mdns): scopedLogger SIGSEGV

* fix(dhcp): watch directory instead of file to catch fsnotify.Create event

* refactor(nbd): move platform-specific code to different files

* refactor(native): move platform-specific code to different files

* chore: fix linter issues

* chore(dev_deploy): allow to override PION_LOG_TRACE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0