maxParticipants: a participant who rejoins through a new join URL holds two slots for about 90 s

Author: antobinaryCreated Sep 29, 2026Updated Sep 29, 2026
Labelsmodule: coremodule: api

Describe the bug

On a meeting created with maxParticipants, a participant who leaves (Leave meeting, closed tab) and comes back through a new join call is counted twice for about 90 seconds, unless both join calls carried the same userID.

  • One slot left in the meeting: nobody can take it during that time.
  • Meeting full: the participant who dropped is refused with maxParticipantsReached when they try to come back.

For most of that time getMeetingInfo reports the right number of participants, and join refuses anyway.

To Reproduce

  1. create with maxParticipants=3.
  2. join P1 and P2, without userID. Open both clients.
  3. Close P1's tab. Call join again for P1, without userID, open the client.
  4. Call join for a third person.

Expected behavior

The third person is accepted: 2 people in the meeting, limit of 3.

Actual behavior

maxParticipantsReached until about 90 s after step 3.

How P1 comes back Counted twice Slot blocked for
Page reload no
Network drop of 8 s, client reconnects no
Closed tab, new join URL, same userID no
Closed tab, new join URL, no userID yes 86 s, 87 s (limit 3), 92 s (limit 10)
Leave meeting, new join URL, no userID yes 87 s
Full meeting, closed tab, new join URL, no userID P1 is refused 77 s, 82 s

One run, limit 3, seconds counted from the moment P1 closes the tab:

Time Event getMeetingInfo attendees join for a third person
0 s P1 closes the tab P1, P2 accepted
3 s P1 is back through a new join URL P1, P2, P1 refused
18 s akka-apps removes the first P1 P2, P1 refused
85 s P2, P1 refused
90 s bbb-web purges the first P1 P2, P1 accepted

BBB version

  • Confirmed on 4.0: 4.0.0-rc.2 based build of v4.0.x-develop (bbb-web at 415098923f, bbb-apps-akka at 3ccdd13843). The code involved is unchanged on the current v4.0.x-develop (d094095e2a).
  • Reported on 3.0.x. The code involved is the same on v3.0.37. 3.0 was checked by reading the code, not by running it.

Additional context

  • Without userID, join uses the new internal user id as the external id (ApiController.groovy), so the participant who comes back is a new unique user for the limit.
  • Meeting.countUniqueExtIds() goes over every entry of users, including the users flagged as left. They stay in the map until MeetingService.purgeUsers() removes them, usersTimeout (60 s) after they left. The task runs every 15 s. getMeetingInfo leaves them out (getNumUsersOnline(), getUsers()), the limit does not.
  • Before that, akka-apps needs about 15 s to remove the user after the disconnection, and validateMaxParticipants counts them during that time.

The 60 s is also what keeps the slot of a participant who reconnects with the same session. Counting only the users who have not left would release the slot at once, and give it away while its owner is reconnecting.

Source: bigbluebutton/bigbluebutton