Changeset 216285 in webkit


Ignore:
Timestamp:
May 5, 2017 3:50:56 PM (7 years ago)
Author:
commit-queue@webkit.org
Message:

TURNS gathering is not working properly
https://bugs.webkit.org/show_bug.cgi?id=171747

Patch by Youenn Fablet <youenn@apple.com> on 2017-05-05
Reviewed by Eric Carlson.

Did manual testing on real TURNS servers.

  • Modules/mediastream/libwebrtc/LibWebRTCPeerConnectionBackend.cpp:

(WebCore::configurationFromMediaEndpointConfiguration): Disabling TURNS servers gathering.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r216278 r216285  
     12017-05-05  Youenn Fablet  <youenn@apple.com>
     2
     3        TURNS gathering is not working properly
     4        https://bugs.webkit.org/show_bug.cgi?id=171747
     5
     6        Reviewed by Eric Carlson.
     7
     8        Did manual testing on real TURNS servers.
     9
     10        * Modules/mediastream/libwebrtc/LibWebRTCPeerConnectionBackend.cpp:
     11        (WebCore::configurationFromMediaEndpointConfiguration): Disabling TURNS servers gathering.
     12
    1132017-05-05  Ryan Haddad  <ryanhaddad@apple.com>
    214
  • trunk/Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCPeerConnectionBackend.cpp

    r215501 r216285  
    8989        iceServer.username = server.username.utf8().data();
    9090        iceServer.password = server.credential.utf8().data();
    91         for (auto& url : server.urls)
    92             iceServer.urls.push_back({ url.string().utf8().data() });
    93         rtcConfiguration.servers.push_back(WTFMove(iceServer));
     91        for (auto& url : server.urls) {
     92            // FIXME: If TURNS is failing, the whole ICE candidate gathering is failing.
     93            // We should fix that and reactivate TURNS gathering.
     94            if (!url.protocolIs("turns"))
     95                iceServer.urls.push_back({ url.string().utf8().data() });
     96        }
     97        if (iceServer.urls.size())
     98            rtcConfiguration.servers.push_back(WTFMove(iceServer));
    9499    }
    95100
Note: See TracChangeset for help on using the changeset viewer.