Changeset 286539 in webkit


Ignore:
Timestamp:
Dec 6, 2021 12:05:45 AM (8 months ago)
Author:
youenn@apple.com
Message:

Close WebRTC allocation sequence shared socket in case of sequence network failure
https://bugs.webkit.org/show_bug.cgi?id=233808

Reviewed by Geoffrey Garen.

  • Source/webrtc/p2p/client/basic_port_allocator.cc:
  • Source/webrtc/p2p/client/basic_port_allocator.h:
Location:
trunk/Source/ThirdParty/libwebrtc
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/ThirdParty/libwebrtc/ChangeLog

    r286110 r286539  
     12021-12-06  Youenn Fablet  <youenn@apple.com>
     2
     3        Close WebRTC allocation sequence shared socket in case of sequence network failure
     4        https://bugs.webkit.org/show_bug.cgi?id=233808
     5
     6        Reviewed by Geoffrey Garen.
     7
     8        * Source/webrtc/p2p/client/basic_port_allocator.cc:
     9        * Source/webrtc/p2p/client/basic_port_allocator.h:
     10
    1112021-11-22  Youenn Fablet  <youenn@apple.com>
    212
  • trunk/Source/ThirdParty/libwebrtc/Source/webrtc/p2p/client/basic_port_allocator.cc

    r285577 r286539  
    12731273}
    12741274
     1275#if defined(WEBRTC_WEBKIT_BUILD)
     1276void AllocationSequence::set_network_failed()
     1277{
     1278  network_failed_ = true;
     1279  if (udp_socket_) {
     1280    udp_socket_->SetError(ENETDOWN);
     1281    udp_socket_->Close();
     1282  }
     1283}
     1284#endif
     1285
    12751286void AllocationSequence::OnNetworkFailed() {
    12761287  RTC_DCHECK(!network_failed_);
    1277   network_failed_ = true;
     1288#if defined(WEBRTC_WEBKIT_BUILD)
     1289  set_network_failed();
     1290#endif
    12781291  // Stop the allocation sequence if its network failed.
    12791292  Stop();
  • trunk/Source/ThirdParty/libwebrtc/Source/webrtc/p2p/client/basic_port_allocator.h

    r285577 r286539  
    356356
    357357  bool network_failed() const { return network_failed_; }
     358#if defined(WEBRTC_WEBKIT_BUILD)
     359  void set_network_failed();
     360#else
    358361  void set_network_failed() { network_failed_ = true; }
     362#endif
    359363
    360364  // Disables the phases for a new sequence that this one already covers for an
Note: See TracChangeset for help on using the changeset viewer.