App Freezing when internet is turned off but still device is connected to wi-fi network
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- csharp, unity
- Domain
- networking
Research direction
Start in NativeWebSocket/Assets/WebSocket/WebSocket.cs around line 569, then trace how the WebSocket state and periodic message dispatch behave when internet access is disabled while Wi-Fi remains connected. Reproduce the hotspot scenario described in the issue; done means the connection state is handled correctly and the app no longer freezes while messages are being dispatched.
Written by the indexing model from the issue text.
Description
Our app use-case contains where we are dispatching messages on Web socket every X seconds.
If we disconnect the app from internet (Using a mobile hotspot and turning off the internet source without turning off the mobile hotspot), then app is freezing after sometime.
Our observation from logs:
- When internet connection is turned off, Websocket state is still being returned as Open, instead of Closed
- So, the messages are still trying to be dispatched on Websocket and after sometime, the task at this line is causing app freeze - https://github.com/endel/NativeWebSocket/blob/60b2960bef354ba9886af15a9a83a6e61164240b/NativeWebSocket/Assets/WebSocket/WebSocket.cs#L569
Please let me know how to overcome this issue.
- Dominant language
- C#
- Stars
- 1.7k
- Forks
- 206
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from endel/NativeWebSocket
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
endel/NativeWebSocket#107 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
endel/NativeWebSocket#102 · 1 comment · 1 reaction ·
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
endel/NativeWebSocket#101 · 6 comments · 2 reactions ·
-
Difficulty 4/5 3-5 days Newbie friendliness 20/100
endel/NativeWebSocket#95 · 1 reaction ·
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
endel/NativeWebSocket#94 · 2 comments ·
All issues in endel/NativeWebSocket
Similar issues
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 90/100
-
Type: enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
apache/arrow-adbc#4809 ·
-
type/automation type/tech-debt
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
microsoft/vscode-azurefunctions#5197 · 1 comment ·
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
microsoft/microsoft-ui-reactor#1274 ·