Commit graph

1332 commits

Author SHA1 Message Date
Joachim Bauch 499f41c849
Add tests for publishers on different hubs. 2024-04-29 12:52:10 +02:00
Joachim Bauch 70cdc7a1aa
Use interface instead of concrete "Hub" class for GRPC server. 2024-04-29 12:31:17 +02:00
Joachim Bauch 90035906d3
proxy: Add more token tests. 2024-04-29 12:31:16 +02:00
Joachim Bauch 0db4e859c2
Add testcase for subscriber in different country but same continent. 2024-04-29 12:31:15 +02:00
Joachim Bauch d9660d905d
Support bandwidth limits when selecting proxy to use. 2024-04-29 12:31:15 +02:00
Joachim Bauch f2f10a01c9
Automatically reconnect proxy connections if interrupted. 2024-04-29 12:31:14 +02:00
Joachim Bauch 92e9bed597
Re-create publisher with new endpoint if it already exists. 2024-04-29 12:31:13 +02:00
Joachim Bauch 7123f07d30
Add methods to unpublish remotely. 2024-04-29 12:31:13 +02:00
Joachim Bauch 3438098f69
Get list of remote streams from offer/answer SDP. 2024-04-29 12:31:12 +02:00
Joachim Bauch b19a67c651
Move Janus classes to separate files, no functional changes. 2024-04-29 12:31:11 +02:00
Joachim Bauch ed16964e50
Move remote classes to separate files and add event handlers. 2024-04-29 12:31:10 +02:00
Joachim Bauch af1ac61ca6
No need to pass remote url when deleting (remote) subscriber. 2024-04-29 12:31:10 +02:00
Joachim Bauch 4e8971f1a7
Make "skipverify" configurable for remote proxy requests. 2024-04-29 12:31:09 +02:00
Joachim Bauch 2f829b7cee
First draft of remote subscriber streams. 2024-04-29 12:31:08 +02:00
Joachim Bauch 5111cb97a8
Add basic tests for mcu proxy client. 2024-04-29 12:31:07 +02:00
Joachim Bauch fdfae1d39e
Add "String()" method to messages to help with debugging. 2024-04-29 10:50:42 +02:00
Joachim Bauch a2f0bec564
Merge pull request #719 from strukturag/dependabot/github_actions/golangci/golangci-lint-action-5.0.0
build(deps): Bump golangci/golangci-lint-action from 4.0.0 to 5.0.0
2024-04-29 08:22:06 +02:00
dependabot[bot] 70f0519ca2
build(deps): Bump golangci/golangci-lint-action from 4.0.0 to 5.0.0
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 4.0.0 to 5.0.0.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v4.0.0...v5.0.0)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-25 20:47:19 +00:00
Joachim Bauch 9e2a896326
Catch log of embedded etcd in tests (follow-up to #718). 2024-04-25 16:07:51 +02:00
Joachim Bauch 2d48018b58
Catch log in GeoIP tests (follow-up to #718). 2024-04-25 15:47:28 +02:00
Joachim Bauch cf19b3b1b4
Merge pull request #718 from strukturag/speedup-tests
Speedup tests by running in parallel
2024-04-25 15:27:10 +02:00
Joachim Bauch ebb215c592
make: Don't run tests verbose by default. 2024-04-25 15:22:24 +02:00
Joachim Bauch 0eb234b24d
Run tests in parallel and catch log output from tests. 2024-04-25 15:21:54 +02:00
Joachim Bauch cad397e59e
Merge pull request #706 from strukturag/graceful-shutdown
Gracefully shut down signaling server on SIGUSR1.
2024-04-23 12:43:06 +02:00
Joachim Bauch f8899ef189
Add mutex for "handler" in client.
Fix flaky race as follow-up to #715
2024-04-23 12:42:31 +02:00
Joachim Bauch 54c4f1847a
Gracefully shut down signaling server on SIGUSR1.
This will wait for all non-internal sessions to be removed / expired
but stop accepting new connections.
2024-04-23 12:25:33 +02:00
Joachim Bauch d368a060fa
Merge pull request #715 from strukturag/resume-remote
Support resuming remote sessions
2024-04-23 11:58:07 +02:00
Joachim Bauch 602452fa25
Support resuming sessions that exist on a different Hub in the cluster. 2024-04-23 11:52:43 +02:00
Joachim Bauch 0c2cefa63a
Don't return "false" if message sending closed the connection. 2024-04-23 11:09:04 +02:00
Joachim Bauch 2468443572
Add "HandlerClient" interface to support custom implementations. 2024-04-23 11:03:30 +02:00
Joachim Bauch 3721fb131f
Don't include empty "auth" field in hello client messages. 2024-04-23 11:03:28 +02:00
Joachim Bauch 6960912681
Merge pull request #716 from strukturag/leak-grpc-goroutines
Prevent goroutine leaks in GRPC tests.
2024-04-23 10:59:23 +02:00
Joachim Bauch b77525603c
Enable goroutine leak checks for more tests. 2024-04-23 10:53:55 +02:00
Joachim Bauch 9adb762ccf
Close file watcher on shutdown to prevent goroutine leaks. 2024-04-23 10:53:28 +02:00
Joachim Bauch bf68a15943
Make sure "clientsMap" is updated so all clients are closed on shutdown. 2024-04-23 10:37:15 +02:00
Joachim Bauch bc7aea68f3
Merge pull request #714 from strukturag/dependabot/pip/docs/mkdocs-1.6.0
build(deps): Bump mkdocs from 1.5.3 to 1.6.0 in /docs
2024-04-23 08:20:27 +02:00
dependabot[bot] 69beea84cb
build(deps): Bump mkdocs from 1.5.3 to 1.6.0 in /docs
Bumps [mkdocs](https://github.com/mkdocs/mkdocs) from 1.5.3 to 1.6.0.
- [Release notes](https://github.com/mkdocs/mkdocs/releases)
- [Commits](https://github.com/mkdocs/mkdocs/compare/1.5.3...1.6.0)

---
updated-dependencies:
- dependency-name: mkdocs
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-22 20:25:03 +00:00
Joachim Bauch 952b8ae460
Merge pull request #713 from strukturag/session-expiration
Don't keep expiration timestamp in each session.
2024-04-22 15:19:16 +02:00
Joachim Bauch 2e6cf7f86b
Don't keep expiration timestamp in each session.
Reduces memory size per session and make hub lock usage consistent.
2024-04-22 15:07:48 +02:00
Joachim Bauch dcec32be7e
Merge pull request #711 from strukturag/dependabot/go_modules/golang.org/x/net-0.23.0
build(deps): Bump golang.org/x/net from 0.21.0 to 0.23.0
2024-04-22 10:38:14 +02:00
Joachim Bauch b0d052c6ec
Merge pull request #712 from strukturag/dependabot/pip/docs/sphinx-7.3.7
build(deps): Bump sphinx from 7.3.5 to 7.3.7 in /docs
2024-04-22 10:38:00 +02:00
dependabot[bot] 318ed3700f
build(deps): Bump sphinx from 7.3.5 to 7.3.7 in /docs
Bumps [sphinx](https://github.com/sphinx-doc/sphinx) from 7.3.5 to 7.3.7.
- [Release notes](https://github.com/sphinx-doc/sphinx/releases)
- [Changelog](https://github.com/sphinx-doc/sphinx/blob/master/CHANGES.rst)
- [Commits](https://github.com/sphinx-doc/sphinx/compare/v7.3.5...v7.3.7)

---
updated-dependencies:
- dependency-name: sphinx
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-19 20:12:57 +00:00
dependabot[bot] ee16a8d8be
build(deps): Bump golang.org/x/net from 0.21.0 to 0.23.0
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.21.0 to 0.23.0.
- [Commits](https://github.com/golang/net/compare/v0.21.0...v0.23.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-19 13:16:11 +00:00
Joachim Bauch 91033bf8c2
Merge pull request #709 from strukturag/dependabot/pip/docs/sphinx-7.3.5
build(deps): Bump sphinx from 7.2.6 to 7.3.5 in /docs
2024-04-18 11:22:56 +02:00
dependabot[bot] b541ebc4c6
build(deps): Bump sphinx from 7.2.6 to 7.3.5 in /docs
Bumps [sphinx](https://github.com/sphinx-doc/sphinx) from 7.2.6 to 7.3.5.
- [Release notes](https://github.com/sphinx-doc/sphinx/releases)
- [Changelog](https://github.com/sphinx-doc/sphinx/blob/master/CHANGES.rst)
- [Commits](https://github.com/sphinx-doc/sphinx/compare/v7.2.6...v7.3.5)

---
updated-dependencies:
- dependency-name: sphinx
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-17 20:24:44 +00:00
Joachim Bauch 0aed690463
Merge pull request #669 from strukturag/janus-multistream
Improve support for Janus 1.x
2024-04-16 16:23:58 +02:00
Joachim Bauch 71a4248568
Merge pull request #705 from strukturag/dependabot/go_modules/go.uber.org/zap-1.27.0
build(deps): Bump go.uber.org/zap from 1.17.0 to 1.27.0
2024-04-16 14:29:15 +02:00
dependabot[bot] df210a6a85
build(deps): Bump go.uber.org/zap from 1.17.0 to 1.27.0
Bumps [go.uber.org/zap](https://github.com/uber-go/zap) from 1.17.0 to 1.27.0.
- [Release notes](https://github.com/uber-go/zap/releases)
- [Changelog](https://github.com/uber-go/zap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/uber-go/zap/compare/v1.17.0...v1.27.0)

---
updated-dependencies:
- dependency-name: go.uber.org/zap
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-15 20:22:57 +00:00
Joachim Bauch 5bc9ada233
Merge pull request #704 from strukturag/etcd-prev-value
Include previous value with etcd watch events.
2024-04-15 12:07:37 +02:00
Joachim Bauch d0d68f0d21
Include previous value with etcd watch events. 2024-04-15 11:57:52 +02:00