r-c-f/waynergy

Network connection change causes deadlock

ackstorm23 opened this issue · 2 comments

I've noticed the following behavior and log messages when I dock/undock my laptop and the network connection moves from Wireless to Ethernet.

The issue is that it does not progress into officially disconnecting and trying to reconnect, at least not for the first 1-2 minutes before I lose patience and kill it.

Nov 19 16:08:26 aut waynergy[747913]: 449.449598367: [DEBUG] Modifiers: depressed: 0 latched: 0 locked: 0 group: 0
Nov 19 16:08:26 aut waynergy[747913]: 449.449668992: [DEBUG] Keycode: 36, state 0
Nov 19 16:08:38 aut waynergy[747913]: 460.825189381: [ERROR] Poll timeout encountered -- disconnecting synergy
Nov 19 16:08:38 aut waynergy[747913]: 460.825506638: [INFO] Going to connect to 10.1.0.12 at port 24800
Nov 19 16:08:38 aut waynergy[747913]: 460.826651895: [DEBUG] Section tls not found in INI
Nov 19 16:08:38 aut waynergy[747913]: 460.841890559: [WARN] Oversized packet: 'DMMV' (length 16779272)
Nov 19 16:08:48 aut waynergy[747913]: 470.842971656: [ERROR] Alarm timeout encountered -- probably disconnecting

Currently running the EAGAIN_FIX branch https://github.com/r-c-f/waynergy/tree/eagain_fix

sway-git r6993.85005b52-1
sway-git-debug r6993.85005b52-1
wayland 1.21.0-1
wayland-protocols 1.28-1
wlroots-git 0.17.0.r5870.2b22a104-1
wlroots-git-debug 0.17.0.r5870.2b22a104-1

Let me know how I could assist in debugging this, if it may be possible to handle this condition more smoothly.

r-c-f commented

Pull in the rebased egain_fix branch, it should prevent trying to parse garbage data from the dead connection (and at least clear up the warning)

I think with your latest commit for handling stale network connections. this is resolved.