mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
aquatic http: request from path: whitelist url keys for security
This way, the non-ddos-resistant hashmap hasher can be kept. Also improves performance, probably simply because less hashing work is done: time: [2.8050 us 2.8156 us 2.8274 us] change: [-22.940% -22.412% -21.916%] (p = 0.00 < 0.01) Performance has improved.
This commit is contained in:
parent
09d27d5075
commit
54e801c6a9
6 changed files with 1017 additions and 1010 deletions
2
TODO.md
2
TODO.md
|
|
@ -11,8 +11,6 @@
|
|||
## aquatic_http
|
||||
* request parsing:
|
||||
* tests of main function and the various helper functions
|
||||
* hashmap needs ddos protecting hash function, or keys could be checked
|
||||
against list before insertion
|
||||
* deserialize 20 bytes: possibly rewrite (just check length of underlying
|
||||
bytes == 20 and then copy them), also maybe remove String from map for
|
||||
these cases too
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue