Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1)
- case VC_EVENT_ERROR:
- case VC_EVENT_INACTIVITY_TIMEOUT:
- case VC_EVENT_ACTIVE_TIMEOUT:
- // The user agent is hosed. Close it &
- // bail on the state machine
- if (t_state.http_config_param->log_spider_codes) {
- t_state.squid_codes.wuts_proxy_status_code = WUTS_PROXY_STATUS_SPIDER_TIMEOUT_WHILE_DRAINING;
- t_state.squid_codes.log_code = SQUID_LOG_ERR_SPIDER_TIMEOUT_WHILE_DRAINING;
- t_state.squid_codes.hier_code = SQUID_HIER_TIMEOUT_DIRECT;
- }
- vc_table.cleanup_entry(ua_entry);
- ua_entry = NULL;
- t_state.client_info.abort = HttpTransact::ABORTED;
- terminate_sm = true;
- return 0;
- }
- // Reset the inactivity timeout if this is the first
- // time we've been called. The timeout had been set to
- // the accept timeout by the HttpClientSession
- //
- if (client_request_hdr_bytes == 0) {
- ua_session->get_netvc()->set_inactivity_timeout(HRTIME_SECONDS(t_state.txn_conf->transaction_no_activity_timeout_in));
- }
- 2) LG가 많은 이유는 reponse_hdr 에 대한 timeout인것같아요
- case HttpTransact::HTTP_API_SEND_REPONSE_HDR:
- // Set back the inactivity timeout
- if (ua_session) {
- ua_session->get_netvc()->set_inactivity_timeout(HRTIME_SECONDS(t_state.txn_conf->transaction_no_activity_timeout_in));
- }
- // we have further processing to do
- // based on what t_state.next_action is
- break;
Add Comment
Please, Sign In to add comment