Page MenuHomePhabricator
Paste P8270

ats_abort_errors.stp
ActivePublic

Authored by ema on Mar 26 2019, 10:12 AM.
Tags
None
Referenced Files
F28470451: raw.txt
Mar 26 2019, 10:12 AM
Subscribers
None
// Line 8406 is case CLIENT_TRANSACTION_RESULT_ERROR_ABORT
// $s:struct State* $total_time:ink_hrtime $client_transaction_result:enum ClientTransactionResult_t $total_msec:ink_hrtime
probe process("/usr/bin/traffic_server").statement("client_result_stat@./proxy/http/HttpTransact.cc:8406")
{
ui = $s->unmapped_url->m_url_impl
pp = @cast(ui, "URLImpl")->m_ptr_path
lp = @cast(ui, "URLImpl")->m_len_path
url = user_string_n(pp ,lp)
resp_cl = $s->hdr_info->response_content_length
// 1024 is an entirely arbitrary value
str_hdrs = user_string_n($s->hdr_info->client_request->m_mime->m_first_fblock->m_field_slots[0]->m_ptr_name, 1024)
// it seems these are all caused by bots such as User-Agent: Googlebot-Image/1.0
printf("%s resp_cl=%d req_hdrs=%s\n", url, resp_cl, str_hdrs)
}