HTTP connection reuse persistent connection CURLOPT_MAXLIFETIME_CONN verbose logs # Server-side HTTP/1.1 200 OK Content-Length: 0 # Client-side http lib%TESTNUMBER connection reuse with CURLOPT_MAXLIFETIME_CONN http://%HOSTIP:%HTTPPORT/%TESTNUMBER # Verify data after the test has been "shot" GET /%TESTNUMBER HTTP/1.1 Host: %HOSTIP:%HTTPPORT Accept: */* GET /%TESTNUMBER HTTP/1.1 Host: %HOSTIP:%HTTPPORT Accept: */* GET /%TESTNUMBER HTTP/1.1 Host: %HOSTIP:%HTTPPORT Accept: */* GET /%TESTNUMBER HTTP/1.1 Host: %HOSTIP:%HTTPPORT Accept: */* == Info: Connection #0 to host %HOSTIP left intact == Info: Connection #0 to host %HOSTIP left intact == Info: Connection #0 to host %HOSTIP left intact == Info: shutting down connection #0 == Info: Connection #1 to host %HOSTIP left intact $_ = '' if (($_ !~ /left intact/) && ($_ !~ /(closing|shutting down) connection #\d+/))