Commit graph

17 commits

Author SHA1 Message Date
Joachim Bauch 82c20ba930
Align 64-bit members that are accessed atomically. 2021-01-05 08:37:09 +01:00
Joachim Bauch 2119993606
Use publisher/subscriber ids that stay the same across reconnections.
Otherwise it could happen that objects were kept in maps (e.g. on the
proxy server) if they reconnected to the WebRTC gateway during their
lifetime. This resulted in incorrect load calculations.
2020-10-26 09:51:33 +01:00
Joachim Bauch 804e558e96
Switch to builtin "context" package now that we can assume Go 1.7 2020-08-31 13:58:28 +02:00
Joachim Bauch 116188c3e3
Reload list of proxy URLs on SIGHUP. 2020-08-31 13:07:03 +02:00
Joachim Bauch 0dcb9f6b2d
Unregister / remove subscriber if reconnection didn't work.
Partial fix from #15.
2020-08-13 14:51:07 +02:00
Joachim Bauch dc1bf2bc9b
Revert "Move processing of deferred method to dedicated DeferredExecutor." 2020-08-13 14:40:06 +02:00
Joachim Bauch 968913e32d
Merge pull request #15 from strukturag/keep-mcu-deferred-processing
Move processing of deferred method to dedicated DeferredExecutor.
2020-08-13 13:22:42 +02:00
Joachim Bauch 015fa3565d
Merge pull request #36 from strukturag/multiple-mcu-support
Support connecting to multiple Janus servers
2020-08-13 13:20:28 +02:00
Joachim Bauch ea74a54d11
Select proxy based on country of publisher (if known).
The connections that have been sorted by load are also sorted by country
of publisher and continent of publisher, e.g. for worldwide proxies, the
ones closest to the publisher will be preferred.
2020-08-13 13:17:09 +02:00
Joachim Bauch 178006faba
Update "janus-go" dependency to handle changed slowlink message.
Janus no longer reports `nacks` since 0.7.3 but changed the field to `lost`.
2020-08-12 16:44:44 +02:00
Joachim Bauch f4d4d5fb4d
Add callbacks for when MCU connection is established/list. 2020-08-07 10:23:47 +02:00
Joachim Bauch b8c9e816b3
Remove unnecessary assignments to the blank identifier. 2020-07-31 14:57:04 +02:00
Joachim Bauch b22d9076a3
Unregister subscriber if "joinRoom" reconnect didn't work.
This will cause a new subscriber object to be created/connected if the client
retries the request.
2020-06-30 16:20:30 +02:00
Joachim Bauch 6455e70f15
Add basic stats API.
Can be used to query number of sessions, rooms and (if Janus is configured),
overall MCU clients and publishers.
2020-05-28 16:02:04 +02:00
Joachim Bauch 4ef06867dd
Move processing of deferred method to dedicated DeferredExecutor.
This fixes an issue where re-joining a room after error stopped the
internal processing of deferred functions.
2020-05-28 10:11:43 +02:00
Stefan Weil 859ba9ec2c Fix some typos in comments and error messages (found by codespell)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-05-23 09:35:00 +02:00
Joachim Bauch 5dcfeda1e9
Initial commit of the OpenSource version.
This corresponds to nextcloud-spreed-signaling 0.0.13
2020-05-12 09:46:20 +02:00