Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about latency.php #5

Open
sktechnology opened this issue Jun 27, 2022 · 1 comment
Open

Question about latency.php #5

sktechnology opened this issue Jun 27, 2022 · 1 comment

Comments

@sktechnology
Copy link

Hi sir, thx for your repository, I'm not sure if I express myself well on the subject due to my imperfect English.

Question about your latency script, the latency time is does the latency apply in both directions ?

When a request is sent, latency, when a request is received, latency ?

if so, that's perfect. if this is not the case is it possible to choose a different latency for the reception and the sending ?

client -> proxy -> latency 100 -> server.

server - lacency 1000 -> proxy -> client.

Thank you for your explanations.

@ihsw
Copy link
Owner

ihsw commented Jun 30, 2022

Hi @sktechnology , it is as such:

client -> proxy -> server -> proxy (+latency) -> client

The default latency toxic plug-in does not support latency on both input (before sending request to server) and output (before sending response to client), only on output.

A new toxic plug-in can be created to support this functionality:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants