mirror of
https://github.com/aria2/aria2.git
synced 2025-04-06 05:57:36 +03:00
Adjust RPC token processing time
Make it consume a bit less time.
This commit is contained in:
parent
bb50de1336
commit
88b61f2eb9
1 changed files with 3 additions and 3 deletions
|
@ -77,11 +77,11 @@
|
||||||
#include "util_security.h"
|
#include "util_security.h"
|
||||||
|
|
||||||
// Lower time limit for PBKDF2 operations in validateToken.
|
// Lower time limit for PBKDF2 operations in validateToken.
|
||||||
static const double kTokenTimeLower = 0.055;
|
static const double kTokenTimeLower = 0.025;
|
||||||
// Upper time limit for PBKDF2 operations in validateToken.
|
// Upper time limit for PBKDF2 operations in validateToken.
|
||||||
static const double kTokenTimeUpper = 0.120;
|
static const double kTokenTimeUpper = 0.5;
|
||||||
// Sweet spot time for PBKDF2 operations in validateToken.
|
// Sweet spot time for PBKDF2 operations in validateToken.
|
||||||
static const double kTokenTimeSweetspot = 0.072;
|
static const double kTokenTimeSweetspot = 0.035;
|
||||||
|
|
||||||
namespace aria2 {
|
namespace aria2 {
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue