mirror of
https://github.com/curl/curl.git
synced 2026-07-30 12:28:04 +03:00
quic: improve connect error message, debugging info, fix false connect report
- ECONNECTREFUSED has not its own fail message in quic filters - Debug logging in connect eyballing improved - Fix bug in ngtcp2/quiche that could lead to false success reporting. Reported-by: Divy Le Ray Fixes #10245 Closes #10248
This commit is contained in:
parent
0ef2926881
commit
1c5d8acf79
5 changed files with 64 additions and 38 deletions
|
|
@ -1555,10 +1555,14 @@ CURLcode Curl_cf_socket_peek(struct Curl_cfilter *cf,
|
|||
if(Curl_cf_is_socket(cf) && cf->ctx) {
|
||||
struct cf_socket_ctx *ctx = cf->ctx;
|
||||
|
||||
*psock = ctx->sock;
|
||||
*paddr = &ctx->addr;
|
||||
*premote_ip_str = ctx->r_ip;
|
||||
*premote_port = ctx->r_port;
|
||||
if(psock)
|
||||
*psock = ctx->sock;
|
||||
if(paddr)
|
||||
*paddr = &ctx->addr;
|
||||
if(premote_ip_str)
|
||||
*premote_ip_str = ctx->r_ip;
|
||||
if(premote_port)
|
||||
*premote_port = ctx->r_port;
|
||||
return CURLE_OK;
|
||||
}
|
||||
return CURLE_FAILED_INIT;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue