Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load tester hanging in login function (due to client.subscribe) #8

Open
TBG-FR opened this issue Oct 14, 2020 · 1 comment
Open

Load tester hanging in login function (due to client.subscribe) #8

TBG-FR opened this issue Oct 14, 2020 · 1 comment

Comments

@TBG-FR
Copy link

TBG-FR commented Oct 14, 2020

Hello there

I have found an issue, apparently caused by this block in api.js, line 172

				if (!NO_SUBSCRIBE) {
					await client.subscribeUserData();
				} else if (NO_SUBSCRIBE === 'no-active') {
					await Promise.all([
						'roles',
						'webdavAccounts',
						'userData',
						// 'activeUsers'
					].map(stream => client.subscribe(stream, '')));
				}

It looks like the execution is hanging there, because if I comment that block, the project is working very well...
I understand that this block allows us to get some "callback" data after our actions, but I may need your help understanding it better, hopefully we'll manage to fix it

Thanks in advance

@TBG-FR
Copy link
Author

TBG-FR commented Oct 14, 2020

However, setting NO_SUBSCRIBE to yes seem to avoid this issue, but it would be good to know why it is blocking

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant