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

League\OpenAPIValidation\Schema\SchemaValidator::validate latency multiplies on every call on response validator #242

Open
mpviau opened this issue Jan 30, 2025 · 0 comments

Comments

@mpviau
Copy link

mpviau commented Jan 30, 2025

Hi,

I don't have much details regarding the exact cause, and I'd appreciate your help identifying it. We have a service running on OpenSwoole, and we are seeing requests becoming slower and slower as more requests are coming in. Every single time we need to validate a response, it adds more lag than the previous validation.

I traced down the source to something happening in League\OpenAPIValidation\Schema\SchemaValidator::validate, called from BodyValidator.

I suspect something stateful somewhere. I will provide more details as I find out more.

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