Commit Graph

857 Commits

Author SHA1 Message Date
zarazaex69
39cc3fafa3 fix(server,client): close old muxconn before session swap 2026-06-07 16:34:12 +03:00
zarazaex69
029ed22cc1 feat(script): add client and server deployment scripts 2026-06-07 15:07:11 +03:00
zarazaex69
68a6e6d52c chore: update default Jitsi service URL to meet.handyweb.org 2026-06-07 01:33:09 +03:00
zarazaex69
2ed53c3d53 style: remove gocognit nolint directive from negotiatePC 2026-06-07 01:25:43 +03:00
zarazaex69
be6428b0b1 test(e2e): update jitsi expectations to pass/fail per transport 2026-06-07 01:23:44 +03:00
zarazaex
7757b0cfec Merge pull request #94 from cyber-debug/master
perf: снизить idle CPU и удалить Docker-поддержку
2026-06-07 01:16:40 +03:00
zarazaex69
5051ea7c8f fix(jitsi): reconnect on peer connection failure
- now jitsi not fail and work SO stable
2026-06-06 18:39:16 +03:00
sbramn
e6336e202c test(e2e): mark public jitsi matrix unstable 2026-06-05 20:09:51 +03:00
sbramn
1f6571d1c1 fix(jitsi): keep negotiation while avoiding idle rtcp 2026-06-05 20:01:45 +03:00
sbramn
275b61480c fix(jitsi): skip idle peer connection keepalive 2026-06-05 19:49:06 +03:00
sbramn
760ff2b6c0 Merge branch 'openlibrecommunity:master' into master 2026-06-05 19:40:39 +03:00
sbramn
8192802a3c Remove Docker support and reduce runtime load 2026-06-05 19:39:32 +03:00
zarazaex69
b0e0fb9a57 fix(jitsi): timeout MUC rejoin during reconnect 2026-06-05 19:32:23 +03:00
zarazaex69
7a6cb7f772 fix(jitsi): require targeted peer frames for clients 2026-06-05 18:11:46 +03:00
zarazaex69
6b9a69c100 docs(jitsi): update default server references 2026-06-04 00:03:42 +03:00
zarazaex69
e2c4b1e3d2 feat: fix reconect cycle #89 2026-06-02 16:34:07 +03:00
zarazaex69
5dd6822d80 refactor(jitsi): clean up linter suppressions and test helpers 2026-06-01 15:44:59 +03:00
zarazaex69
2cff30d55e docs: add update/restart instructions to fast and manual guides 2026-06-01 15:27:34 +03:00
zarazaex69
0684ace550 test(jitsi): update tests for consecutive-failure reconnect model 2026-06-01 15:00:55 +03:00
zarazaex69
649cad5d2d fix(jitsi): reset reconnect count after success 2026-06-01 14:58:32 +03:00
zarazaex69
90e2ed9c33 fix(jitsi): re-latch peer after reconnect 2026-06-01 13:35:36 +03:00
zarazaex69
ac930021b1 fix(jitsi): accept peer epoch changes without reconnect 2026-06-01 13:21:08 +03:00
zarazaex69
1d0a1467e4 test(jitsi): replace keepalive tests with paired chaos 2026-06-01 13:14:34 +03:00
zarazaex69
cc65c033e2 fix(jitsi): prevent reconnect loops and idle 2026-06-01 12:51:06 +03:00
zarazaex
2d2e772c05 Merge pull request #88 from ben73/fix/jitsi-reconnect-focus-realloc
fix(jitsi): re-allocate Jicofo focus on reconnect (non-blocking)
2026-06-01 11:58:12 +03:00
e.barskov
bd1a95cac5 fix(jitsi): re-allocate Jicofo focus on reconnect (non-blocking)
The lightweight soft-rejoin path (jSess.Rejoin) skips Jicofo focus
allocation and joins the MUC with a bare presence. After the client
leaves and Jicofo idle-terminates the now-empty conference
(session-terminate <expired/>), the room/focus is torn down. A bare
rejoin presence is then rejected by Prosody with
<presence type='error'><not-allowed/>, and the library's JoinMUC matches
a stale status-110 left in its stanza buffer and falsely reports success.
The engine then waits forever for a session-initiate that never arrives
while actually being outside the room, so the client can never reconnect.

Re-establish the session from scratch via j.JoinMUC instead, which runs
dial -> focus allocation -> MUC join in the correct order (focus first,
so Jicofo recreates the room), exactly like the initial Connect, but
WITHOUT blocking on session-initiate. The fresh session-initiate is
awaited separately via WaitJingleReinitiate once a peer rejoins, so the
non-blocking reconnect contract is preserved.

Verified on a live deployment: two consecutive reconnect cycles now
complete (bridge open sctp -> reconnected -> session opened) where the
old path hung after "waiting for session-initiate".

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-01 00:36:25 +04:00
zarazaex69
08e03d0803 build(deps): bump github.com/zarazaex69/j 2026-05-31 20:50:28 +03:00
zarazaex69
dfce46dd5f fix(jitsi): add bridge keepalive loop 2026-05-31 19:41:09 +03:00
zarazaex
9f96925758 Merge pull request #85 from openlibrecommunity/fix/jitsi-nonblocking-connect
fix(jitsi): make Connect non-blocking
2026-05-31 13:09:44 +03:00
zarazaex69
71b1fbdf27 fix(jitsi): make Connect non-blocking, wait for session-initiate async
j.Join() blocks on WaitJingle until Jicofo sends session-initiate,
which only happens when a second participant joins the room. With the
transport-level connect timeout (30-60s), the server crashes if no one
joins in time.

Switch to j.JoinMUC() which returns immediately after joining the MUC.
A background goroutine (waitForJingle) waits for session-initiate and
then opens the bridge + negotiates the PeerConnection. This way Connect
succeeds as soon as the XMPP connection is established, regardless of
whether another participant is present.
2026-05-31 13:07:22 +03:00
zarazaex
ab848b4c48 Merge pull request #84 from grandgaev/fix/rtcp-keepalive-wedge
fix(jitsi): break out of rtcpKeepalive on persistent write errors
2026-05-31 07:55:28 +03:00
Rock Brock
ffa5d4ac13 fix(jitsi): break out of rtcpKeepalive loop on persistent write errors
When the JVB bridge disconnects but the session is not yet closed
(e.g. during a pending reconnect), rtcpKeepalive spins indefinitely
logging "rtcp keepalive write: io: read/write on closed pipe" every
5 seconds. The process appears alive but is functionally dead —
systemd Restart=always never triggers and the instance becomes
permanently wedged.

Add an error counter that triggers requestReconnect after 3
consecutive WriteRTCP failures, allowing the supervisor to
tear down and re-establish the bridge connection. Reset the
counter on any successful write.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-31 07:23:23 +05:00
zarazaex69
efadd37df4 fix: golangci 2026-05-30 12:16:20 +03:00
zarazaex69
da3bf43721 style: normalize dash usage in comments and logs 2026-05-29 22:08:36 +03:00
zarazaex69
c4984f65d6 fix(jitsi): reuse xmpp session on reconnect. fix #82 2026-05-29 22:07:15 +03:00
zarazaex69
52aea2d79d fix(vp8channel): add byte-rate pacer to prevent policer collapse 2026-05-29 19:16:59 +03:00
zarazaex69
cb4d5c93f9 chore(deps): bump zarazaex69/j to 20260528155819 2026-05-28 19:00:20 +03:00
zarazaex69
1f1eabc420 chore(deps): bump zarazaex69/gr from v0.1.4 to v0.1.5 2026-05-28 17:15:52 +03:00
zarazaex69
33f46460dc test(e2e): tune videochannel params and reduce chunk timeout 2026-05-28 13:19:14 +03:00
zarazaex69
b190c8c878 style: reformat python files 2026-05-28 13:18:59 +03:00
zarazaex69
1427c0d3c7 fix(videochannel): increase timeouts to handle SFU renegotiation delays 2026-05-28 05:54:18 +03:00
zarazaex69
5a3b5bbdce test: reduce videochannel e2e transport options for faster tests 2026-05-28 03:56:12 +03:00
zarazaex69
579687e7e3 docs: add olcrtc section to readme 2026-05-28 02:58:12 +03:00
zarazaex69
9f25ac59fc perf(videochannel): reduce ack timeout and multiplier 2026-05-28 02:42:50 +03:00
zarazaex69
cfa1bd6083 test(e2e): mark jitsi video transports as unstable
- temporary crutch
2026-05-27 14:05:23 +03:00
zarazaex69
15e597cff9 test(e2e): update carrier/transport expectations matrix 2026-05-27 13:12:06 +03:00
zarazaex69
e15170bb15 chore(e2e): remove -race flag from E2e target 2026-05-27 13:09:16 +03:00
zarazaex69
b5c6e1a14a doc: repository was hijacked by Israeli hackers 2026-05-27 12:58:30 +03:00
zarazaex69
94d646b9f2 refactor(magefile): move package path before flags in test commands 2026-05-27 12:53:11 +03:00
zarazaex69
8b424bc16b docs: update Go requirement to 1.26 and expand mage targets 2026-05-27 12:20:17 +03:00