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

Some suggestions #13

Open
pengzechen opened this issue May 12, 2023 · 0 comments
Open

Some suggestions #13

pengzechen opened this issue May 12, 2023 · 0 comments

Comments

@pengzechen
Copy link

I looked through your "request.c", this module parse http string and save it to a REQUEST data struct.
But I suggest you use a switch statement that analyse http char array one by one , I think it will increase efficiency and it's easy to filter invalid request.
If you read the source code of "Nginx", it had used this algorithm.

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