[Webkit-unassigned] [Bug 247943] REGRESSION (Safari 15.6.1-16.1): WebSocket in latest Safari does not emit onclose event when internet is turned off (wifi or cellular)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Apr 13 03:51:11 PDT 2023


https://bugs.webkit.org/show_bug.cgi?id=247943

Mike <poremba at nolimit.sk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|MOVED                       |---
             Status|RESOLVED                    |REOPENED

--- Comment #14 from Mike <poremba at nolimit.sk> ---
@Brent Fulgham by my testing it is not fixed. Tested now in iOS 16.4.1 (20E252). Here https://dev.bikeapp.sk/apple-bugs/2/ sentence "WebSocket fired event onclose" still shows "no" after turning wifi off. See screens here: https://dev.bikeapp.sk/apple-bugs/2/still-not-fixed-in-v16.4.1.png I have been waiting for at least 15 minutes and "onclose" still not changed to "yes" as in another non-webkit browsers (Firefox, Chrome etc.). Could you test please this https://dev.bikeapp.sk/apple-bugs/2/ ?

As I mentioned earlier it is not desired websocket connection to pretend in opened state when there is no internet connection. After restoring internet connection websocket connection is anyway usually dead because of killing zombie connections by server (server can not keep zombie connections in memory to infinity). Zombie connections I mean connections which do not responds with "pong" to server's "ping" for long time. For more more about zombie connections see here https://github.com/websockets/ws#how-to-detect-and-close-broken-connections 

It would be great Safari's websockets to use behaviour as before switching to NSURLSession WebSocket and as another browsers behaves.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230413/30a17742/attachment.htm>


More information about the webkit-unassigned mailing list