31 Commits
Author SHA1 Message Date
Jannis Mattheis 3c0d0f4589 ci: add golangci config 2026-01-01 13:42:03 +01:00
Jannis Mattheis b6094d54f2 fix: prevent deadlock by timeouting blocking writes 2024-12-07 12:15:44 +01:00
Jannis Mattheis 40ad444c84 fix: limit /health timeout to 5 seconds 2024-12-07 09:56:53 +01:00
Jannis Mattheis ae86223ace fix: add health endpoint 2024-10-11 15:11:07 +02:00
Jannis Mattheis a0f3c37498 fix: race condition
In client.go

    if room, ok := message.(outgoing.Room); ok {
            c.info.RoomID = room.ID
    }

this part isn't thread safe. It could happen that user disconnected but
wasn't removed from a room, because the disconnecting go routine
couldn't see the roomID yet.
2024-10-11 15:11:07 +02:00
Jannis Mattheis 46467a3f79 fix: update dependencies 2024-09-27 16:20:15 +02:00
Jannis Mattheis da3f5b1692 fix: goroutine leak 2024-09-27 16:20:15 +02:00
Jannis Mattheis 4df473779d fix: log full events 2024-08-17 18:29:44 +02:00
Jannis Mattheis 6bc29f93da fix: better room name generation
See #173
2023-11-20 18:40:09 +01:00
Jannis Mattheis a0f06e539c Add dns fetching for external ip 2023-07-29 14:22:53 +02:00
Jannis Mattheis 0abd53ec94 Fix linting 2023-03-17 09:59:23 +01:00
Jannis Mattheis 58c5061eab Add create on join 2022-02-13 18:42:18 +01:00
Jannis Mattheis 44f2f4e52e Remove unused param 2022-02-13 18:42:18 +01:00
Maxim Baz 1fa9d9a03b Add external TURN server support (#87) 2021-05-24 15:29:02 +00:00
Florian Brandt 979a7be292 Fix typo 2021-03-11 17:46:23 +00:00
Jannis Mattheis d71c303df7 Use IPv4 stun for IPv6 connections
* User1 connects with IPv6
* User2 connects with IPv4 (without any support for IPv6)
* User1 asks via STUN for his address, and receives a IPv6 address back
* User2 asks via STUN for his address, and receives a IPv4 address back
* User2 cannot connect to User1 IPv6 address

After this fix: User1 asks both for his IPv4 and IPv6 addresses.

See #56
2020-12-03 19:49:31 +00:00
Jannis Mattheis 75773e9946 Disallow TURN login after session close 2020-10-27 10:33:02 +01:00
Jannis Mattheis d304472572 Add ipv6 support 2020-10-27 08:54:26 +00:00
Jannis Mattheis 3191988801 Don't fail on unknown session
There may be a race condition if a user disconnects and the other peer
just sent a p2p message.

Fixes #14
2020-10-23 19:40:06 +02:00
Thomas von Rosenberg 3f2b2b135c Use counters instead of gauges 2020-10-15 16:41:01 +00:00
Broder Peters afeb72f66a Rename sharing to streaming 2020-10-11 09:09:22 +00:00
Jannis Mattheis d228b19430 Fix stopshare event
See #28
2020-10-09 16:37:39 +02:00
Thomas von Rosenberg 54859ed19c Add prometheus endpoint 2020-10-09 16:00:59 +02:00
Jannis Mattheis 7efeccad52 Properly close share sessions 2020-10-09 13:46:37 +00:00
Jannis Mattheis 4c849059ba Use logged in username as username in room 2020-10-09 13:46:37 +00:00
Jannis Mattheis 10b0b40324 Fix deadlock 2020-10-09 08:03:56 +00:00
Jannis Mattheis 343c1e747e Improve logging 2020-10-09 08:03:56 +00:00
Jannis Mattheis 91bee5750e Fix "write on closed channel"
Fixes #19
2020-10-09 08:03:56 +00:00
Jannis Mattheis 9694f3828d Add ?transport=tcp url to TURN ICE
See #21
2020-10-09 08:03:56 +00:00
Jannis Mattheis d4518eaf89 Log events 2020-10-09 08:03:56 +00:00
Jannis Mattheis 81743cbb4d Add websocket handler 2020-10-04 20:10:38 +02:00