new env var DRKONQI_HTTP_DELAY_MS to force a connection delay
ClosedPublic

Authored by sitter on Jul 10 2019, 1:22 PM.

Details

Summary

this is super duper handy when trying to test slow network connections
as it makes every single api job take a minimum amount of time

Test Plan

things are slow when set to 10000

Diff Detail

Repository
R871 DrKonqi
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
sitter created this revision.Jul 10 2019, 1:22 PM
Restricted Application added a project: Plasma. · View Herald TranscriptJul 10 2019, 1:22 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
sitter requested review of this revision.Jul 10 2019, 1:22 PM

Why not just use tc to throttle the network connection?

Fair point but I don't want to throttle my music stream, I want to throttle the drkonqi api requests ;)
Also, an IO throttle isn't always useful. e.g. for the stuff in D22326 I want control exactly how long the reply should take so I reach the page in question when the reply hasn't yet returned, but then returns "soon enough".

broulik accepted this revision.Aug 14 2019, 2:33 PM
This revision is now accepted and ready to land.Aug 14 2019, 2:33 PM
This revision was automatically updated to reflect the committed changes.

[spam comment removed by sysadmin]