Main function to start the HTTP Proxy Server. More...
Go to the source code of this file.
Functions | |
void | init_HttpProxyServer (int n_accept_threads=0) |
Initialize all HTTP proxy port data structures needed to run. | |
void | start_HttpProxyServer () |
Start the proxy server. | |
void | start_HttpProxyServerBackDoor (int port, int accept_threads=0) |
NetProcessor::AcceptOptions | make_net_accept_options (const HttpProxyPort &port, unsigned nthreads) |
Main function to start the HTTP Proxy Server.
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Definition in file HttpProxyServerMain.h.
void init_HttpProxyServer | ( | int | n_accept_threads | ) |
Initialize all HTTP proxy port data structures needed to run.
Definition at line 239 of file HttpProxyServerMain.cc.
References Vec< C, A, S >::add(), debug_cs_list_mutex, debug_sm_list_mutex, HttpProxyPort::global(), http_pages_init(), httpSessionManager, icp_dynamic_enabled, HttpSessionManager::init(), init_reverse_proxy(), ink_mutex_init(), Vec< C, A, S >::length(), MakeHttpProxyAcceptor(), Continuation::mutex, new_ProxyMutex(), detail::HttpSessionAcceptOptions::setOutboundTransparent(), and ssl_plugin_mutex.
Referenced by main().
NetProcessor::AcceptOptions make_net_accept_options | ( | const HttpProxyPort & | port, | |
unsigned | nthreads | |||
) |
Definition at line 116 of file HttpProxyServerMain.cc.
References NetProcessor::AcceptOptions::accept_threads, NetProcessor::AcceptOptions::f_inbound_transparent, HttpConfigParams::inbound_ip4, HttpConfigParams::inbound_ip6, NetProcessor::AcceptOptions::ip_family, IpAddr::isIp4(), IpAddr::isIp6(), IpAddr::isValid(), NetProcessor::AcceptOptions::local_ip, NetProcessor::AcceptOptions::local_port, HttpProxyPort::m_family, HttpProxyPort::m_inbound_ip, HttpProxyPort::m_inbound_transparent_p, HttpConfig::m_master, and HttpProxyPort::m_port.
Referenced by MakeHttpProxyAcceptor(), TSPluginDescriptorAccept(), and TSPortDescriptorAccept().
void start_HttpProxyServer | ( | ) |
Start the proxy server.
The port data should have been created by init_HttpProxyServer()
.
Definition at line 276 of file HttpProxyServerMain.cc.
References HttpProxyAcceptor::_accept, HttpProxyAcceptor::_net_opt, FeatureAPIHooks< ID, N >::get(), HttpProxyPort::global(), init_http_update_test(), ink_assert, APIHook::invoke(), is_action_tag_set, HttpProxyPort::isPlugin(), HttpProxyPort::isSSL(), Vec< C, A, S >::length(), lifecycle_hooks, HttpProxyPort::m_fd, NetProcessor::main_accept(), netProcessor, APIHook::next(), sslNetProcessor, TS_EVENT_LIFECYCLE_PORTS_READY, and TS_LIFECYCLE_PORTS_READY_HOOK.
Referenced by CB_After_Cache_Init(), and main().
void start_HttpProxyServerBackDoor | ( | int | port, | |
int | accept_threads = 0 | |||
) |
Definition at line 318 of file HttpProxyServerMain.cc.
References NetProcessor::AcceptOptions::accept_threads, NetProcessor::AcceptOptions::backdoor, detail::HttpSessionAcceptOptions::backdoor, NetProcessor::AcceptOptions::local_port, NetProcessor::AcceptOptions::localhost_only, NetProcessor::main_accept(), netProcessor, and NO_FD.
Referenced by main().