curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: Support HTTP2 Goaway Frame callback for curl multi

From: Ray Satiro via curl-library <curl-library_at_lists.haxx.se>
Date: Thu, 11 Jan 2024 02:10:26 -0500

On 1/11/2024 1:13 AM, Cao Duc Quan wrote:
> If I grasp your point correctly, the statement "*curl may not process
> a GOAWAY immediately*" implies that there might be a delay in some of
> cURL's internal logic until a user initiates a request. However, I
> believe that my proposal will ensure the callback is triggered
> promptly whenever nghttp2 receives a GOAWAY frame, as it will be
> invoked within the
> nghttp2_session_callbacks_set_on_frame_recv_callback() chain, possibly
> passing through the layers of socket -> ssl -> nghttp2.


nghttp2 won't receive the frame until curl reads that connection. As I
explained there's no connection upkeep except for curl_easy_upkeep which
only sends a PING. I have proposed allowing curl_easy_upkeepĀ  to be
called on easy handles with shared connection caches. [1]


[1]: https://github.com/curl/curl/pull/12677


-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html
Received on 2024-01-11