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

Error: Client network socket disconnected before secure TLS connection was established #392

Open
Arthoo opened this issue Mar 14, 2022 · 2 comments

Comments

@Arthoo
Copy link

Arthoo commented Mar 14, 2022

Hello,

We have started using Kassette together with Playwright. When we run it on Jenkins with multiple workers (lot's of concurrent requests) we get this error:

Error: Client network socket disconnected before secure TLS connection was established

However, if we bypass Kassette we don't have this.

Do you know if this is a known limitation or if there's some configuration we could do to avoid having this error?

@divdavem
Copy link
Member

Hello,

Thank you for your interest in kassette and for reporting this issue.

To answer your question, this is not a known limitation.
I cannot tell you how to solve it, it has to be investigated more in depth to see how it happens.
If you give us an easy way to reproduce it (in a sample repository), we could have a look at it in more details.

If you think it is linked to the high number of requests, you could perhaps run multiple instances of kassette (for example: one per worker, which can be started by playwright with worker-scoped fixtures) so each instance processes less requests. This gives the extra benefit of being able to configure kassette differently depending on the playwright test that is being run (e.g. using different mocks for different tests).

@Arthoo
Copy link
Author

Arthoo commented Mar 22, 2022

Hello,

Thank you for your answer.
We are already using the worker-scoped fixtures. We have tried reducing the number of workers from 15 to 2 which does help but it is not a good solution in the long term as it would take too long to run all tests as we continue adding more.

For now we have bypassed Kassette but we will try to investigate this issue further when we have advanced more with our tests so we can provide you with more details.

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

2 participants