curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: How to get connection status of curl connections currently?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 23 Feb 2017 13:28:48 +0100 (CET)

On Thu, 23 Feb 2017, 18823815918 wrote:

> I use libcurl to do http2 communications. I wanna to keep one persistent
> connection,as far as I know,After each single curl_multi_perform operation,
> libcurl will keep the connection alive and open.if they closed the
> connection.how I can tested it?

Enable CURLOPT_VERBOSE and libcurl will tell you if it reuses connections or
creates new.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2017-02-23