⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 286841 in webkit


Ignore:
Timestamp:
Dec 10, 2021, 2:39:28 AM (5 years ago)
Author:
youenn@apple.com
Message:

REGRESSION (iOS 15): Safari loses Network access when establishing WebRTC session
https://bugs.webkit.org/show_bug.cgi?id=233752
<rdar://problem/86196093>

Reviewed by Geoffrey Garen.

When we get an error from a UDP nw socket, we do not need to stop reading and close it.
We can just log the error and continue reading as the error might get fixed later on.

Not easily testable.

  • NetworkProcess/webrtc/NetworkRTCUDPSocketCocoa.mm:
Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r286838 r286841  
     12021-12-10  Youenn Fablet  <youenn@apple.com>
     2
     3        REGRESSION (iOS 15): Safari loses Network access when establishing WebRTC session
     4        https://bugs.webkit.org/show_bug.cgi?id=233752
     5        <rdar://problem/86196093>
     6
     7        Reviewed by Geoffrey Garen.
     8
     9        When we get an error from a UDP nw socket, we do not need to stop reading and close it.
     10        We can just log the error and continue reading as the error might get fixed later on.
     11
     12        Not easily testable.
     13
     14        * NetworkProcess/webrtc/NetworkRTCUDPSocketCocoa.mm:
     15
    1162021-12-10  Kimmo Kinnunen  <kkinnunen@apple.com>
    217
  • trunk/Source/WebKit/NetworkProcess/webrtc/NetworkRTCUDPSocketCocoa.mm

    r286432 r286841  
    289289        if (isComplete && context && nw_content_context_get_is_final(context))
    290290            return;
    291         if (error) {
    292             RELEASE_LOG_ERROR(WebRTC, "NetworkRTCUDPSocketCocoaConnections failed processing UDP data with error %d", nw_error_get_error_code(error));
    293             return;
    294         }
     291
     292        RELEASE_LOG_ERROR_IF(!!error, WebRTC, "NetworkRTCUDPSocketCocoaConnections failed processing UDP data with error %d", nw_error_get_error_code(error));
    295293        processUDPData(WTFMove(nwConnection), WTFMove(processData));
    296294    }).get());
Note: See TracChangeset for help on using the changeset viewer.