-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Retry generating RTCNetwork serialization #18984
Retry generating RTCNetwork serialization #18984
Conversation
EWS run on previous version of this PR (hash bb7a931) |
WebKit::RTC::Network::IPAddress ip; | ||
uint16_t port; | ||
int scopeID; | ||
bool literal; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not reuse IsUnresolvedIP here for SocketAddress?
It should allow to map precisely to what the current code does and might not require changing libwebrtc, which is always a bit of a burden.
We could reuse the code from SocketAddress::decode in SocketAddress::rtcAddress()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That caused a test timeout last time for an unknown reason.
bb7a931
to
e6c0609
Compare
EWS run on current version of this PR (hash e6c0609) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Could you file a bug about trying to remove the customer SocketAddress constructor?
I might try to tackle it when I have some time.
https://bugs.webkit.org/show_bug.cgi?id=263060 rdar://116847094 Reviewed by Youenn Fablet. A few days ago I tried this, but the SocketAddress transformation wasn't lossless so it was quickly reverted. This redoes it, but with a very straightforward SocketAddress struct. * Source/ThirdParty/libwebrtc/Source/webrtc/rtc_base/socket_address.h: * Source/WebKit/CMakeLists.txt: * Source/WebKit/DerivedSources-input.xcfilelist: * Source/WebKit/DerivedSources.make: * Source/WebKit/NetworkProcess/webrtc/NetworkRTCMonitor.cpp: (WebKit::NetworkManagerWrapper::onNetworksChanged): * Source/WebKit/NetworkProcess/webrtc/NetworkRTCProvider.cpp: (WebKit::NetworkRTCProvider::createUDPSocket): (WebKit::NetworkRTCProvider::createClientTCPSocket): (WebKit::NetworkRTCProvider::sendToSocket): * Source/WebKit/Shared/RTCNetwork.cpp: (WebKit::RTCNetwork::RTCNetwork): (WebKit::ips): (WebKit::RTCNetwork::value const): (WebKit::RTC::Network::IPAddress::IPAddress): (WebKit::RTC::Network::IPAddress::rtcAddress const): (WebKit::RTC::Network::SocketAddress::SocketAddress): (WebKit::RTC::Network::SocketAddress::rtcAddress const): (WebKit::RTC::Network::InterfaceAddress::InterfaceAddress): (WebKit::RTC::Network::InterfaceAddress::rtcAddress const): (WebKit::RTCNetwork::IPAddress::decode): Deleted. (WebKit::RTCNetwork::IPAddress::encode const): Deleted. (WebKit::RTCNetwork::SocketAddress::decode): Deleted. (WebKit::RTCNetwork::SocketAddress::encode const): Deleted. (WebKit::RTCNetwork::decode): Deleted. (WebKit::RTCNetwork::encode const): Deleted. * Source/WebKit/Shared/RTCNetwork.h: (WebKit::RTC::Network::IPAddress::UnspecifiedFamily::operator== const): (WebKit::RTC::Network::IPAddress::IPAddress): (WebKit::RTC::Network::InterfaceAddress::InterfaceAddress): (WebKit::RTCNetwork::IPAddress::IPAddress): Deleted. (WebKit::RTCNetwork::SocketAddress::SocketAddress): Deleted. * Source/WebKit/Shared/RTCNetwork.serialization.in: Added. * Source/WebKit/WebKit.xcodeproj/project.pbxproj: * Source/WebKit/WebProcess/Network/webrtc/LibWebRTCNetwork.cpp: (WebKit::LibWebRTCNetwork::signalAddressReady): (WebKit::LibWebRTCNetwork::signalReadPacket): * Source/WebKit/WebProcess/Network/webrtc/LibWebRTCNetworkManager.cpp: (WebKit::LibWebRTCNetworkManager::networksChanged): * Source/WebKit/WebProcess/Network/webrtc/WebRTCResolver.cpp: (WebKit::WebRTCResolver::setResolvedAddress): Canonical link: https://commits.webkit.org/269302@main
e6c0609
to
1a1ce78
Compare
Committed 269302@main (1a1ce78): https://commits.webkit.org/269302@main Reviewed commits have been landed. Closing PR #18984 and removing active labels. |
I filed rdar://116922531 for future investigation |
1a1ce78
e6c0609