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
Change request handling to use split instead of regular expressions. #3
Conversation
The regular expression fails with a stack overflow for paths of more than 135 characters. The splits also appears to be much faster. Co-authored-by: Shae Erisson <shae@scannedinavian.com>
I don't get the stack overflow error, testing on a random board (nrRF 52840). What board are you testing this on? |
This fails on the AdaFruit FunHouse running Circuit Python 7.2.5
|
Same thing on a MagTag with CircuitPython 7.2.5
|
I think there is a stack depth issue on ESP32-nn. That is a separate core CircuitPython issue. But I'll review this for its own sake. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this. I think using the regular expression would generate less garbage, but if it's noticeably faster, that's fine too.
e93729b
to
bfbcf1c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Updating https://github.com/adafruit/Adafruit_CircuitPython_HTTPServer to 0.1.3 from 0.1.2: > Merge pull request adafruit/Adafruit_CircuitPython_HTTPServer#3 from shapr/http_request_line > Update .pre-commit-config.yaml > Patch .pre-commit-config.yaml > change discord badge > Patch: Replaced discord badge image > Updated gitignore > Update Black to latest. > Corrected pylint version
The regular expression fails with a stack overflow for paths of
more than 135 characters. The split also appears to be much faster.
Failing parse:
Co-authored-by: Shae Erisson shae@scannedinavian.com