mirror of
https://github.com/curl/curl.git
synced 2026-08-24 22:13:33 +03:00
parent
bcce220367
commit
4f95ce8dfe
1 changed files with 8 additions and 3 deletions
|
|
@ -318,8 +318,12 @@ CURLcode Curl_hyper_stream(struct Curl_easy *data,
|
||||||
else {
|
else {
|
||||||
uint8_t errbuf[256];
|
uint8_t errbuf[256];
|
||||||
size_t errlen = hyper_error_print(hypererr, errbuf, sizeof(errbuf));
|
size_t errlen = hyper_error_print(hypererr, errbuf, sizeof(errbuf));
|
||||||
failf(data, "Hyper: %.*s", (int)errlen, errbuf);
|
hyper_code code = hyper_error_code(hypererr);
|
||||||
result = CURLE_RECV_ERROR; /* not a very good return code */
|
failf(data, "Hyper: [%d] %.*s", (int)code, (int)errlen, errbuf);
|
||||||
|
if((code == HYPERE_UNEXPECTED_EOF) && !data->req.bytecount)
|
||||||
|
result = CURLE_GOT_NOTHING;
|
||||||
|
else
|
||||||
|
result = CURLE_RECV_ERROR;
|
||||||
}
|
}
|
||||||
*done = TRUE;
|
*done = TRUE;
|
||||||
hyper_error_free(hypererr);
|
hyper_error_free(hypererr);
|
||||||
|
|
@ -885,7 +889,8 @@ CURLcode Curl_http(struct connectdata *conn, bool *done)
|
||||||
if(hypererr) {
|
if(hypererr) {
|
||||||
uint8_t errbuf[256];
|
uint8_t errbuf[256];
|
||||||
size_t errlen = hyper_error_print(hypererr, errbuf, sizeof(errbuf));
|
size_t errlen = hyper_error_print(hypererr, errbuf, sizeof(errbuf));
|
||||||
failf(data, "Hyper: %.*s", (int)errlen, errbuf);
|
hyper_code code = hyper_error_code(hypererr);
|
||||||
|
failf(data, "Hyper: [%d] %.*s", (int)code, (int)errlen, errbuf);
|
||||||
hyper_error_free(hypererr);
|
hyper_error_free(hypererr);
|
||||||
}
|
}
|
||||||
return CURLE_OUT_OF_MEMORY;
|
return CURLE_OUT_OF_MEMORY;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue