SDRPlusPlus icon indicating copy to clipboard operation
SDRPlusPlus copied to clipboard

Client crashes on packet loss while connected to Server

Open lalliexperience opened this issue 1 year ago • 2 comments

** Hardware ** Multiple computers, Mac or PC versions as client, using Pi or Linux PC as SDRPP server. The symptoms are identical on any hardware for client and server.

Software Multiple operating systems, Mac and PC versions as client, using Pi Linux PC as SDRPP Server. The symptoms are identical on any hardware for client and server.

Bug Description The SDR++ Client Software will freeze/crash any time there is a network interruption while connected to a SDRPP Server. It would be nice if the software could detect this and just disconnect instead of freezing.

The SDR++ Client Software will freeze when you attempt to connect to a SDRPP Server and port which does not exist. It should know fairly quickly that there is not a service on that destination port and provide an error.

Steps To Reproduce

  • Unplug ethernet/Unplug router/Disconnect wifi/ cause packet loss in any way between the SDRPP Client and SDRPP Server. Client software will freeze permanently. Can not click Disconnect. Must force close software (Windows or Mac)

  • Attempt to connect to an SDRPP Server IP and port that does not exist.

Screenshots When Packet loss: cant click disconnect, permanent freeze, must force quit program: Screenshot 2024-08-31 at 10 25 20 PM

Attempting to connect to a non existing IP and port, 30 second freeze: Screenshot 2024-08-31 at 10 19 40 PM

Additional info The Software running in Server mode does not seem to be effected by interuptions.

lalliexperience avatar Sep 01 '24 05:09 lalliexperience

Are you sure the freeze is permanent? The timeout on connection is set by the operating system and the timeout on commands is set to 10 seconds. On my PC the connecting to a non-server IP freeze (which is expected since everything is synchronous in the UI) only lasts 20 seconds, and I can't test the other situation atm.

AlexandreRouma avatar Sep 01 '24 06:09 AlexandreRouma

For attempting connection to non existent Ip/port it’s not permanent, but it is a while. I just retested on Mac and it was froze for over 1 minute.

For loss of connection it’s a complete freeze that never recovers.

On Sat, Aug 31, 2024 at 11:15 PM AlexandreRouma @.***> wrote:

Are you sure the freeze is permanent? The timeout on connection is set by the operating system and the timeout on commands is set to 10 seconds. On my PC the connecting to a non-server IP freeze (which is expected since everything is synchronous in the UI) only lasts 20 seconds, and I can't test the other situation atm.

— Reply to this email directly, view it on GitHub https://github.com/AlexandreRouma/SDRPlusPlus/issues/1462#issuecomment-2323186994, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADD6ESENVQMP577ZEMADLBLZUKWHFAVCNFSM6AAAAABNOQPZCGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMRTGE4DMOJZGQ . You are receiving this because you authored the thread.Message ID: @.***>

lalliexperience avatar Sep 01 '24 08:09 lalliexperience