commit | 9d269408a4fd063605e933f057ab595e533f32f7 | [log] [tgz] |
---|---|---|
author | Taylor Brandstetter <deadbeef@webrtc.org> | Wed Nov 25 23:24:53 2020 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Nov 26 01:00:22 2020 |
tree | 2e4caa7a7fe5d5754ce129c5e87047f4cd29bbb1 | |
parent | b6b599fc588e59142df343d2d2897203468aacea [diff] |
Set TCP_NODELAY socket option before calling connect. Setting the option after calling connect but before the socket is connected fails in some circumstances on Windows, while setting it before connecting always succeeds. That's what Chrome is doing; TCPClientSocket::OpenSocket calls SetDefaultOptionsForClient (which sets TCP_NODELAY) right after opening the socket. Also, start logging errors, and storing last error when setsockopt fails. Bug: webrtc:12217 Change-Id: I169d52e31b50e54e5bc93ff3590bae656cacb2b2 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/195060 Commit-Queue: Taylor <deadbeef@webrtc.org> Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Reviewed-by: Jonas Oreland <jonaso@webrtc.org> Cr-Commit-Position: refs/heads/master@{#32696}
WebRTC is a free, open software project that provides browsers and mobile applications with Real-Time Communications (RTC) capabilities via simple APIs. The WebRTC components have been optimized to best serve this purpose.
Our mission: To enable rich, high-quality RTC applications to be developed for the browser, mobile platforms, and IoT devices, and allow them all to communicate via a common set of protocols.
The WebRTC initiative is a project supported by Google, Mozilla and Opera, amongst others.
See here for instructions on how to get started developing with the native code.
Authoritative list of directories that contain the native API header files.