Guest User

Untitled

a guest
Dec 14th, 2018
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. 1)
  2. case VC_EVENT_ERROR:
  3. case VC_EVENT_INACTIVITY_TIMEOUT:
  4. case VC_EVENT_ACTIVE_TIMEOUT:
  5. // The user agent is hosed. Close it &
  6. // bail on the state machine
  7. if (t_state.http_config_param->log_spider_codes) {
  8. t_state.squid_codes.wuts_proxy_status_code = WUTS_PROXY_STATUS_SPIDER_TIMEOUT_WHILE_DRAINING;
  9. t_state.squid_codes.log_code = SQUID_LOG_ERR_SPIDER_TIMEOUT_WHILE_DRAINING;
  10. t_state.squid_codes.hier_code = SQUID_HIER_TIMEOUT_DIRECT;
  11. }
  12. vc_table.cleanup_entry(ua_entry);
  13. ua_entry = NULL;
  14. t_state.client_info.abort = HttpTransact::ABORTED;
  15. terminate_sm = true;
  16. return 0;
  17. }
  18.  
  19. // Reset the inactivity timeout if this is the first
  20. // time we've been called. The timeout had been set to
  21. // the accept timeout by the HttpClientSession
  22. //
  23. if (client_request_hdr_bytes == 0) {
  24. ua_session->get_netvc()->set_inactivity_timeout(HRTIME_SECONDS(t_state.txn_conf->transaction_no_activity_timeout_in));
  25. }
  26.  
  27.  
  28. 2) LG가 많은 이유는 reponse_hdr 에 대한 timeout인것같아요
  29. case HttpTransact::HTTP_API_SEND_REPONSE_HDR:
  30. // Set back the inactivity timeout
  31. if (ua_session) {
  32. ua_session->get_netvc()->set_inactivity_timeout(HRTIME_SECONDS(t_state.txn_conf->transaction_no_activity_timeout_in));
  33. }
  34. // we have further processing to do
  35. // based on what t_state.next_action is
  36. break;
Add Comment
Please, Sign In to add comment