examples: Check return value from nghttp2_submit_settings

This commit is contained in:
Tatsuhiro Tsujikawa 2016-06-26 19:57:29 +09:00
parent 7d847d8796
commit ad7cded2f4
1 changed files with 5 additions and 1 deletions

View File

@ -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);