DescriptionDon't start PseudoTCP until underlying transport is connect.
Previously LibjingleTransportFactory was creating and returning
transport before the transport is connected. This means that that the
PseudoTCP was trying to start handshake on a broken transport. That was
delaying PseudoTCP/SSL when the transport takes some time to setup
(e.g. over STUN/Relay). Now LibjingleTransportFactory returns the
transport only after it becomes writable. Empirical testing shows that
this change makes connection initiation much faster in cases when NAT
traversal is required (4 vs 10 seconds).
Committed: https://crrev.com/bf00a43689c645029d918a42493ab66d8b3aa5b0
Cr-Commit-Position: refs/heads/master@{#295862}
Patch Set 1 #
Messages
Total messages: 7 (2 generated)
|