Merge branch 'bugfix/http2_request_example' into 'master'

Fixed broken http2_request example.

See merge request espressif/esp-idf!8000
This commit is contained in:
Mahavir Jain 2020-03-26 19:45:10 +08:00
commit 7cbc593ef6

View File

@ -242,7 +242,8 @@ int sh2lib_connect(struct sh2lib_handle *hd, const char *uri)
esp_tls_cfg_t tls_cfg = {
.alpn_protos = proto,
.non_block = true,
};
.timeout_ms = 10 * 1000,
};
if ((hd->http2_tls = esp_tls_conn_http_new(uri, &tls_cfg)) == NULL) {
ESP_LOGE(TAG, "[sh2-connect] esp-tls connection failed");
goto error;