-
Notifications
You must be signed in to change notification settings - Fork 639
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] Control the download speed/upload speed on SSL stream #2516
Comments
You can either intersperse each invocation of The first method is the easiest. Are you using HTTP or Websockets? Callbacks or coroutines? If you need more guidance I can write a little demo. |
In fact I'm now using both (my library is required to support both of them)
I'm now using coroutines
Oh really? I just thought how can I implement it. |
@madmongo1 How'd you go about this? Drop in a delay between calls to async_read_some? I wonder if rate-limited ops could be a nice demo of async_compose |
Couple of ways, depending big on whether you’re looking to have a hard cap on bit rate or want to have a constant average bit rate. |
I want to upload a file to a server, but I want to control my upload rate.
Since we are now using SSL, however, I have no idea how to control the rate under this case...
The
tcp_stream
have function to control the rate directly, so what should I do in order to control the rate with thessl_stream
? cuz I've searched the code aboutssl_stream
, that I didn't find anything about controlling the rate...Perhaps it may be a little mess since it is not well organized.
The text was updated successfully, but these errors were encountered: