examples: Check return value from nghttp2_submit_settings
This commit is contained in:
parent
7d847d8796
commit
ad7cded2f4
|
@ -562,7 +562,11 @@ static void fetch_uri(const struct URI *uri) {
|
||||||
diec("nghttp2_session_client_new", rv);
|
diec("nghttp2_session_client_new", rv);
|
||||||
}
|
}
|
||||||
|
|
||||||
nghttp2_submit_settings(connection.session, NGHTTP2_FLAG_NONE, NULL, 0);
|
rv = nghttp2_submit_settings(connection.session, NGHTTP2_FLAG_NONE, NULL, 0);
|
||||||
|
|
||||||
|
if (rv != 0) {
|
||||||
|
diec("nghttp2_submit_settings", rv);
|
||||||
|
}
|
||||||
|
|
||||||
/* Submit the HTTP request to the outbound queue. */
|
/* Submit the HTTP request to the outbound queue. */
|
||||||
submit_request(&connection, &req);
|
submit_request(&connection, &req);
|
||||||
|
|
Loading…
Reference in New Issue