LOCKING: must be called with lock taken
| 674 | |
| 675 | // LOCKING: must be called with lock taken |
| 676 | bool |
| 677 | HttpBodyFactory::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 |
| 701 | void |
no outgoing calls
no test coverage detected