Commit Graph

13 Commits

Author SHA1 Message Date
rob
1368fe899e Drop packets when buffer is full in mux
Resolves #2180
2022-04-20 00:34:59 -04:00
rob
93b0f2a75e Wait and re-try when Mux destination ErrFull
Resolves #2152
2022-03-20 17:25:25 -07:00
Antoine Baché
7e049ec5ec Update examples
TestNonFatalRead now has an timeout.
Examples now use Mime types, instead of raw strings.

Fixes #839
2021-07-02 11:49:55 -04:00
Juliusz Chroboczek
d625f6f637 Optimise mux.dispatch
Uncurry the function MuxRange and avoid allocating a reader in
isRTCP.  The included benchmark indicates that we avoid five
allocations per packet.
2021-05-07 11:09:09 -07:00
Sean DuBois
dab8a4a104 Handle errors properly in mux readLoop
Before io.ErrShortBuffer and packetio.ErrTimeout would incorrectly end
the read loop. Now they are only printed.

Resolves #1720
2021-03-22 11:16:11 -07:00
Sean DuBois
9715626a0c Revert "Read/Write RTP/RTCP packets with context"
This change caused a ~24% performance decrease

Relates to pion/webrtc#1564

This reverts commit 47a7a64898.
2020-12-02 20:11:06 -08:00
Atsushi Watanabe
47a7a64898 Read/Write RTP/RTCP packets with context
Control cancel/timeout by context.
2020-12-01 11:08:48 +09:00
Hugo Arregui
6997cc792c Linter fixes
Disable funlen and some fixes

Co-authored-by: Sean DuBois <sean@siobud.com>
2019-09-10 21:48:25 -07:00
Sean DuBois
1cdfc10c84 Mass replace pions -> pion
Pions organization was renamed to pion
2019-04-04 15:32:03 -07:00
Hugo Arregui
87897285b1 Custom Loggers
Define LoggerFactory as part of the SettingEngine
2019-04-01 11:14:13 -03:00
Luke Curley
08a93d89ba Optimize Read by buffering
Increases the Read performance to acceptable levels. Packet loss went
from roughly 8% to 0.5% with this change.
2019-03-12 21:34:48 -07:00
Woodrow Douglass
bd75c3381e Add some tests to improve coverage
Relates to #324
2019-01-07 13:11:27 -08:00
backkem
2024438da0 Mux: Test shutdown
Relates to #276

d
2018-12-20 01:28:49 -05:00