-
Notifications
You must be signed in to change notification settings - Fork 98
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
How to get notified when there are data need send to quic from nghttp3? #322
Comments
There is no such method. You only need to call nghttp3_conn_writev_stream after you input some data to nghttp3 (e.g., after submit something, or read some thing with nghttp3_conn_read_stream). |
Current, we share nghttp3_conn across threads by using I have to forward all There have some way to simplify implementation If it does, will make my implementation more easy. |
No. Depending on the priorities and many variables, you cannot predict any particular stream is returned unless you are using single stream. |
Got it, thankyou |
We have build a nghttp3 rust library with tokio(an async runtime) support. #281
But I want to optimize reduce unnecessary call to
nghttp3_conn_writev_stream
Current,
nghttp3_conn_writev_stream
need be called almost everywhere to check if there are some data to sendnghttp3_conn_writev_stream
check whether need to send back to quic.nghttp3_conn_submit_request
, then callnghttp3_conn_writev_stream
to check.nghttp3_conn_writev_stream
Does there has a callback to notify us:
Or does we have nice method to get notified when need to
poll from nghttp3 then send to quic
?The text was updated successfully, but these errors were encountered: