Hi, Just use drop() function in a case of reaching the limit. Le mer. 20 mars 2024 à 13:49, Sasmita Panda <[email protected]> a écrit :
> Hi , > > Thank you for your suggestion . I will try that . just to clarify did you > mean that will drop the wss connection of that user ? > > > *Thanks & Regards* > *Sasmita Panda* > *Senior Network Testing and Software Engineer* > *3CLogic , ph:07827611765* > > > On Wed, Mar 20, 2024 at 6:05 PM Ihor Olkhovskyi <[email protected]> > wrote: > >> Hi! >> >> You can try to use something like cachedb module (for autoexpiry) with >> name of the key like "username_timestamp" and increment it in a case of >> value exists. And if value is above some threshold - drop further >> connections. >> >> Cheers, >> Ihor >> >> Le mar. 19 mars 2024 à 12:05, Sasmita Panda <[email protected]> a >> écrit : >> >>> Hi All , >>> >>> I have opensips 3.2 version with webrtc configured . I just got an issue >>> in production that one browser is trying to establish multiple connections >>> frequently which overloads my server which has the impact that other >>> browsers are not able to establish a single connection at some points . >>> >>> Is this possible? I can limit the number of websocket connections per >>> user (here the user has a unique username which I used to save as contact >>> in the location table ) so that the server will reject the connection above >>> that ? >>> >>> Please do suggest . Your help is appreciated . >>> >>> *Thanks & Regards* >>> *Sasmita Panda* >>> *Senior Network Testing and Software Engineer* >>> *3CLogic , ph:07827611765* >>> _______________________________________________ >>> Users mailing list >>> [email protected] >>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users >>> >> >> >> -- >> Best regards, >> Ihor (Igor) >> _______________________________________________ >> Users mailing list >> [email protected] >> http://lists.opensips.org/cgi-bin/mailman/listinfo/users >> > _______________________________________________ > Users mailing list > [email protected] > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > -- Best regards, Ihor (Igor)
_______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
