Commit Graph

158 Commits

Author SHA1 Message Date
Denys Smirnov
331f97dbf4 Add Twirp options to preserve error details and client timeouts (#963)
* Add Twirp client/server options to preserve gRPC error details.

* Pass Twirp client timeouts to the server.
2025-02-06 13:05:18 +02:00
Denys Smirnov
c909c95e07 Pass SIP statuses as RPC error details. (#958) 2025-01-29 23:08:30 +02:00
Paul Wells
7b5c5cd3dd add GetAndSet to bitmap (#942)
* add GetAndSet to bitmap

* cleanup

* benchmark GetAndSet
2025-01-11 11:13:11 -08:00
Raja Subramanian
442c0b901d Small optimisation to store the mask. (#941)
* Small optimisation to store the mask.

Have been chasing some optimisations and noticing getSlotAndOffset
taking up reasonable cycles because it is used in some per packet path.
Making a small optimisation to store the mask.

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-01-12 00:05:25 +05:30
David Colburn
83e359fc95 platform pagesize (#936) 2025-01-06 01:24:25 -05:00
Paul Wells
64b40bd3e5 wait for gc in lock tracker test (#934)
* wait for gc in lock tracker test

* cleanup

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-12-26 18:09:12 -08:00
Raja Subramanian
c87b1afc61 Update deque to 1.0.0 (#929)
* Update deque to 1.0.0

* generated protobuf

* keep pointer

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-12-19 17:43:50 -05:00
cnderrauber
bc388341b9 Check element cound in parallel execute (#924)
* Check element cound in parallel execute

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-12-17 09:33:17 +08:00
David Colburn
933b7ff014 monitor process memory usage (#914) 2024-12-10 12:20:52 -05:00
Paul Wells
5a1aa9f902 use events library for config observer (#912) 2024-12-04 23:58:46 -08:00
cnderrauber
b738aedbd8 upgrade to webrtc v4 (#899) 2024-11-28 15:28:30 +08:00
Raja Subramanian
792495362f Utility to build livekit.MetricsBatch (#889)
* mbb WIP

* generated protobuf

* tweaks

* generated protobuf

* merge

* filters

* add IsEmpty

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-11-25 09:59:26 +05:30
Paul Wells
8cab0f9e75 add pointer.To helper (#886) 2024-11-18 17:46:36 -08:00
Paul Wells
a328ced3d5 clone proto slice util (#870) 2024-10-25 05:26:48 -07:00
Paul Wells
caa595ed32 move emitter to separate package (#867) 2024-10-21 23:10:22 -07:00
David Zhao
1eb56d4243 Improve usability of room configuration (#864)
* Improve usability of room configuration

- allowing setting configuration parameters directly
- removes dispatch wrapper to simplify agents specification

* generated protobuf

* changeset

* rename to roomConfig to avoid confusion

* fix test

* export agent dispatch protobufs

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-10-21 22:37:24 -07:00
Paul Wells
226ac38b50 add license header to mono (#861) 2024-10-17 02:03:26 -07:00
Paul Wells
37cb4c8b25 add monotonic time util (#860)
* add monotonic time util

* unixmicro

* fromtime
2024-10-16 08:59:12 -07:00
Raja Subramanian
b7c4dc5f45 More precise proto proxy timing. (#859)
* More precise proto proxy timing.

It is possible that update function takes some time. Due to that the
next cycle could see less than refresh interval since refresh and skip a
cycle.

That could end up adding an extra cycle.

* clean up

* clean up
2024-10-16 17:59:19 +05:30
Raja Subramanian
a3ae28b3c5 utility to for connection quality higher (#851) 2024-10-14 16:22:16 +05:30
Paul Wells
38527a8685 fix unlikely logger call depth (#849)
* fix unlikely logger call depth

* mute test
2024-10-11 08:29:06 -07:00
Paul Wells
9081e9623c fix guid append write offset (#846) 2024-10-09 16:45:27 -07:00
Paul Wells
136dfa7a25 fix agents rpc enum typo (#838)
* fix agents rpc enum typo

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-10-07 04:03:47 -07:00
Paul Wells
8fd1f553fe add MarshalAppend for guid (#837)
* add MarshalAppend for guid

* wrong bytes
2024-10-05 03:58:42 -07:00
Denys Smirnov
e29da3c74e Fix test deadlock on failure. (#834) 2024-10-04 18:33:55 +03:00
Paul Wells
b216a9275d add unlikely logger (#829) 2024-10-02 22:29:59 -07:00
Paul Wells
be21ccf7da add closers util (#827) 2024-09-27 09:27:25 -07:00
Paul Wells
1ac3b74d03 clean up unused utils (#819)
* clean up unused utils

* cleanup
2024-09-20 23:07:11 -07:00
Raja Subramanian
1874ac0679 Error util to check one of. (#815) 2024-09-19 10:55:04 +05:30
Paul Wells
822e90187c add callback functions to event emitter (#810) 2024-09-17 23:26:11 -07:00
Paul Wells
a7b1ab8bde add utilities for applying options and copying protobufs (#809) 2024-09-17 23:25:30 -07:00
Raja Subramanian
9675e0cf33 Add uint8 to Bitmap (#808) 2024-09-15 00:01:02 +05:30
Paul Wells
fbe514b3fa return error for max hedge attempts (#793)
* return error for max hedge attempts

* cleanup
2024-08-24 05:41:32 -07:00
Paul Wells
f5a53f8566 unblock blocked event emitters when stopped (#790) 2024-08-14 01:39:41 -07:00
Paul Wells
45b9751aaf add atomic config helpers (#772)
* add atomic config helpers

* generated protobuf

* copy

* disable grpc generation for protos

* copy

* deps

* tidy

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-07-29 19:55:40 -07:00
Paul Wells
47a1eaca35 add blocking event emitter mode (#768) 2024-07-26 01:35:24 -07:00
Benjamin Pracht
f187d838fc Add AgentDispatchPrefix to guid (#757) 2024-07-10 19:21:40 -07:00
Paul Wells
425cb974f7 update yaml config tags (#741) 2024-06-13 23:08:01 -07:00
Paul Wells
d5e9f0a2f9 refactor guid out of utils (#730)
* refactor guid out of utils

* cleanup
2024-06-05 19:07:23 -07:00
Paul Wells
c721a3ed39 add message bytes to psrpc metrics observer (#723)
* add message bytes to psrpc metrics observer

* deps
2024-05-26 12:36:38 -07:00
Lukas Herman
2ec622e468 fix: rate intermittent flaky tests (#721)
changes:
  * add retries to advance clock to unblock rate limiters
  * rewrite some tests to be more robust and simpler
  * add assertCount with noise to consider oversubscribed CI machines
  * remove parallel tests, reduce CPU pressure on CI machines
  * replaced assert with require
2024-05-24 10:40:50 -04:00
cnderrauber
04d15340d0 Move LatencyAggregate into utils (#720) 2024-05-23 15:30:33 +08:00
Paul Wells
e079b2245f avoid allocation from timeout queue iterator (#710) 2024-05-09 02:37:16 -07:00
Paul Wells
72c0789f38 allow setting min log level for logger (#705)
* allow setting min log level for logger

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-05-06 22:22:14 -07:00
Denys Smirnov
e0c63d7698 Add Twirp interceptor that prints curl commands (#702)
* Add Twirp interceptor that prints curl commands.

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-05-01 22:08:30 +03:00
Denys Smirnov
e7962f4444 Pass additional metadata for SIP. (#696) 2024-04-26 13:44:03 +03:00
Paul Wells
524ca6a3a3 reduce allocations from guids (#692)
* reduce allocations from guids

* fix

* fix

* less lock thrashing
2024-04-21 13:07:37 -07:00
Paul Wells
91a1cc854d lazily initialize pion loggers (#689)
* lazily initialize pion loggers

* cleanup
2024-04-18 19:00:32 -07:00
Lukas Herman
b7e396271d fix: rate limit update and slack unit (#685)
* add an atomic update to rate and slack

* fix: slack should be int instead of Duration

* add documentation to rateLimit and slack
2024-04-17 13:22:27 -04:00
Paul Wells
b6a979d8cf add iterator to timeseries (#677)
* add iterator to timeseries

* cleanup

* cleanup
2024-04-09 23:02:26 -07:00