Closed
Bug 1377299
Opened 7 years ago
Closed 7 years ago
Add [ChromeOnly] packet dump hooks to RTCPeerConnection
Categories
(Core :: WebRTC: Signaling, enhancement, P3)
Tracking
()
People
(Reporter: bwc, Assigned: bwc)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
It would be very useful to be able to perform packet inspection in mochitest, to verify things like RTP/RTCP, DTLS handshake, ICE stuff, etc. It would also make it possible to log packet dumps automatically when a failure occurs, making debugging easier.
Assignee | ||
Updated•7 years ago
|
Summary: Add ChromeOnly packet dump hooks to RTCPeerConnection → Add [ChromeOnly] packet dump hooks to RTCPeerConnection
Assignee | ||
Updated•7 years ago
|
backlog: --- → tech-debt
Rank: 28
Priority: -- → P2
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → docfaraday
Comment hidden (mozreview-request) |
Assignee | ||
Comment 5•7 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=913b2aa8ae0b
Assignee | ||
Comment 6•7 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=66859c869625
Comment hidden (mozreview-request) |
Assignee | ||
Updated•7 years ago
|
Attachment #8882448 -
Flags: review?(drno)
Attachment #8882448 -
Flags: review?(bugs)
Comment 8•7 years ago
|
||
mozreview-review |
Comment on attachment 8882448 [details] Bug 1377299: Add packet dump hooks r+drno https://reviewboard.mozilla.org/r/153576/#review160960 r+ for .webidl which seems to be all chromeonly.
Attachment #8882448 -
Flags: review?(bugs) → review+
Comment 9•7 years ago
|
||
mozreview-review |
Comment on attachment 8882448 [details] Bug 1377299: Add packet dump hooks r+drno https://reviewboard.mozilla.org/r/153576/#review161792 ::: media/webrtc/signaling/gtest/mediapipeline_unittest.cpp:358 (Diff revision 5) > audio_stream_track_ = new FakeAudioStreamTrack(); > } > > virtual void CreatePipelines_s(bool aIsRtcpMux) { > > - std::string test_pc("PC"); > + std::string test_pc; Out of curiosity: what is this changed needed for? ::: media/webrtc/signaling/src/peerconnection/PeerConnectionImpl.cpp:2321 (Diff revision 5) > > +bool > +PeerConnectionImpl::ShouldDumpPacket(size_t level, dom::mozPacketDumpType type, > + bool sending) const > +{ > + MutexAutoLock lock(mPacketDumpFlagsMutex); I'm a little concerned that we are locking now twice on every send and received packet in here. The default use case for 99% of our PeerConnection is going to never touch this and skip over. Thus I would feel better if we had some early exit criteria like a bool, which gets flipped on the very first call to EnablePacketDump().
Attachment #8882448 -
Flags: review?(drno) → review+
Assignee | ||
Comment 10•7 years ago
|
||
mozreview-review-reply |
Comment on attachment 8882448 [details] Bug 1377299: Add packet dump hooks r+drno https://reviewboard.mozilla.org/r/153576/#review161792 > Out of curiosity: what is this changed needed for? PacketDumper (really, PeerConnectionWrapper) gets asserty when it can't find the PC. I'm using an empty handle to indicate there is no PC, and to disable the packet dump functionality. > I'm a little concerned that we are locking now twice on every send and received packet in here. > The default use case for 99% of our PeerConnection is going to never touch this and skip over. Thus I would feel better if we had some early exit criteria like a bool, which gets flipped on the very first call to EnablePacketDump(). Well, it is just one lock (since we do not dispatch if the first check fails), with no contention. Last I checked, that would not impose a detectable performance penalty for something like network packets. But an atomic bool would be a simple optimization.
Comment hidden (mozreview-request) |
Comment 12•7 years ago
|
||
Mass change P2->P3 to align with new Mozilla triage process.
Priority: P2 → P3
Comment hidden (mozreview-request) |
Comment 14•7 years ago
|
||
Pushed by bcampen@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e0fdec80a50c Add packet dump hooks r+drno r=drno,smaug
Comment 15•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/e0fdec80a50c
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox58:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla58
You need to log in
before you can comment on or make changes to this bug.
Description
•