Well, besides setting use_libevent to true in prosody config, is there anything else to do? I am using Jitsi components for audio/video conferencing - so NGINX proxies APIs to these components as well. When connected the clients send ping messages (XEP-0199) periodically - that is about it Basically, I am validating how the websocket server handles loss of connection connectivity from all clients at once - this is where I am seeing the issue.
- Harsha On Monday, August 28, 2017 at 6:46:55 AM UTC-4, Kim Alvefur wrote: > > Hey, > > On Mon, Aug 28, 2017 at 01:52:42AM -0700, Harsha Bellur wrote: > > I am using nginx as the websocket proxy. Prosody version 0.9.8 > > > > I am making 1500 websocket connections using a script and when all > > connections are done - I close them all. At this point, based on the > logs, > > it seems like the event loop is (presumably) blocked till all the > > connections are closed (until listener's ondisconnect function is called > > for all connections). The *main* observation is that there is a delay in > > handling the events - *about 3 - 5 seconds between handling each > disconnect*. > > This renders prosody unusable for a long time until all the disconnect > > events are processed, > > > > What I want to understand is the delay between each disconnect. Is there > a > > way to reduce this delay? > > > > Note that I do not observe this delay (between disconnects) if I run the > > same test with say up to 500 connections. The *total* delay was about 2 > - 3 > > seconds during which time the event loop is ( presumably) blocked till > all > > the connections are closed. > > This all sounds very weird. Can you describe your (Prosody) > configuration in more detail? Especially whether you use libevent or the > default select network backed, and if you have any custom settings for > it. Have you tried connecting directly to Prosody, without nginx? Have > you tried something other than websocket connections? What was sent on > the connections? > > > -- > Zash > -- You received this message because you are subscribed to the Google Groups "prosody-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/prosody-dev. For more options, visit https://groups.google.com/d/optout.
