0
0
Fork 0
mirror of https://github.com/dani-garcia/vaultwarden synced 2024-06-02 20:19:07 +02:00
bitwarden_rs/src
BlackDex 6cdcb3b297
Optimized Favicon downloading
Some optimizations in regards to downloading Favicon's.

I also encounterd some issues with accessing some sites where the
connection got dropped or closed early. This seems a reqwest/hyper
thingy, https://github.com/hyperium/hyper/issues/2136. This is now also
fixed.

General:

- Decreased struct size
- Decreased memory allocations
- Optimized tokenizer a bit more to only emit tags when all attributes are there and are valid.

reqwest/hyper connection issue:
The following changes helped solve the connection issues to some sites.
The endresult is that some icons are now able to be downloaded always instead of sometimes.

- Enabled some extra reqwest features, `deflate` and `native-tls-alpn`
  (Which do not bring in any extra crates since other crates already enabled them, but they were not active for Vaultwarden it self)
- Configured reqwest to have a max amount of idle pool connections per host
- Configured reqwest to timeout the idle connections in 10 seconds
2023-08-13 19:13:00 +02:00
..
api Optimized Favicon downloading 2023-08-13 19:13:00 +02:00
db Implement login-with-device 2023-08-13 17:54:18 +02:00
static Sync global_domains.json to bitwarden/server@8dda73a (Pinterest) 2023-05-17 12:04:31 -07:00
auth.rs Add some extra access checks for attachments and groups 2023-07-03 19:58:14 +02:00
config.rs Implement login-with-device 2023-08-13 17:54:18 +02:00
crypto.rs Remove get_random_64() 2022-11-13 10:03:06 +01:00
error.rs Cleanups and Fixes for Emergency Access 2022-12-04 23:17:48 +01:00
mail.rs Change String to &str for all Rocket functions 2023-04-30 17:18:12 +02:00
main.rs Implement login-with-device 2023-08-13 17:54:18 +02:00
ratelimit.rs Basic ratelimit for user login (including 2FA) and admin login 2021-12-22 21:48:49 +01:00
util.rs feat: Add support for forwardemail 2023-07-12 10:50:41 +02:00