Check connection to stored
$agent
$link
$doc_id
This function is currently not documented; only its argument list is available.