MCPcopy Create free account
hub / github.com/apache/trafficserver / is_response_suppressed

Method is_response_suppressed

src/proxy/http/HttpBodyFactory.cc:676–698  ·  view source on GitHub ↗

LOCKING: must be called with lock taken

Source from the content-addressed store, hash-verified

674
675// LOCKING: must be called with lock taken
676bool
677HttpBodyFactory::is_response_suppressed(HttpTransact::State *context)
678{
679 // Since a tunnel may not always be an SSL connection,
680 // we may want to return an error message.
681 // Even if it's an SSL connection, it won't cause any harm
682 // as the connection is going to be closed anyway.
683 /*
684 if (context->client_info.port_attribute == SERVER_PORT_BLIND_TUNNEL) {
685 // Blind SSL tunnels always suppress error messages
686 return true;
687 } else
688 */
689 if (context->txn_conf->response_suppression_mode == 0) {
690 return false;
691 } else if (context->txn_conf->response_suppression_mode == 1) {
692 return true;
693 } else if (context->txn_conf->response_suppression_mode == 2) {
694 return context->request_data.internal_txn;
695 } else {
696 return false;
697 }
698}
699
700// LOCKING: must be called with lock taken
701void

Callers 1

setup_error_transferMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected