Bug 447318

Summary: KDEconnect v1.18.0 on Android12: TCP connection closing on TCPport 1716 stuck in TCP state FIN_WAIT2
Product: [Applications] kdeconnect Reporter: Riegler Bernhard <riegler.b>
Component: android-applicationAssignee: Albert Vaca Cintora <albertvaka>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Android   
OS: Android 11.x   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: screenshot of wireshark and "netstat -anct"

Description Riegler Bernhard 2021-12-21 07:07:47 UTC
Created attachment 144740 [details]
screenshot of wireshark and "netstat -anct"

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. on Linux side: start server process listening on TCPport 1716 (GSconnect package)
2. a valid TCP connection is established, wait for TCP-keep-alive.
3. on Linux side: stop server process on TCPport 1716

OBSERVED RESULT with wireshark and netstat (on Linux side)
  Linux side: server is sending TLS Alert
  Linux side: server is sending TCP FIN, ACK
  Android side: client just sends ACK, but no FIN (this is the BUG reported)
  Linux side: TCP state is stuck in "FIN_WAIT2"

EXPECTED RESULT
  Android side: client process should send a TCP FIN and terminate its direction.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Ubuntu 20.04LTS with GSconnect
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
the Android side is IPv4 address 10.0.0.4
see attached file for wireshark and "netstat -anct" in Linux