how to use nghttp3_conn_read_stream correctly? #323
-
nghttp3_conn_read_stream docs said.
which means If But It's hard to implement in multple thread. We do have async support for nghttp3, share let's assume there two request_stream A,B, in different thread T1, T2 If nghttp3_conn_read_stream throw error in A|T1, it's hard to tell B/T2 to stop everything right now, never call ANY api, just return to avoid UB. How we can nicely avoid UB on call |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I had to say this is the issue of your architecture, not nghttp3. Even without nghttp3, you most likely need to stop threads or something that belong to the same connection if something bad happens with the connection. |
Beta Was this translation helpful? Give feedback.
I had to say this is the issue of your architecture, not nghttp3. Even without nghttp3, you most likely need to stop threads or something that belong to the same connection if something bad happens with the connection.