Skip to content

Rate-limiting misbehavior after setting system clock back from erroneous future time to actual time #35

@cwpearson

Description

@cwpearson

If the system clock is set ahead of the actual time, and a submission is made, it will fail with an error that the clock skew is too large. For example

#31

Then, if the time is corrected, and another submission made, rai may fail with the following message:

$ ./rai-linux-amd64 -p gpu-algorithms-labs-master/labs/device_query/ 
Error: Last submission was made 1 hour from now. Due to the rate limit, submissions are not allows within a 0s  time window. 
Last submission was made 1 hour from now. Due to the rate limit, submissions are not allows within a 0s  time window. 
2019/06/28 11:43:06 error: Last submission was made 1 hour from now. Due to the rate limit, submissions are not allows within a 0s  time window.

The hidden rate-limiting flag has no effect on this behavior, so there is no work-around. If the system clock was ahead by several hours, the user is blocked for several hours.

Manjaro 18.0.4

./rai-linux-amd64 buildtime -p test/
BuildDate: 

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions