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

Method init

src/iocore/net/UnixNetProcessor.cc:257–278  ·  view source on GitHub ↗

This needs to be called before the ET_NET threads are started.

Source from the content-addressed store, hash-verified

255
256// This needs to be called before the ET_NET threads are started.
257void
258UnixNetProcessor::init()
259{
260 naVecMutex = new_ProxyMutex();
261
262 netHandler_offset = eventProcessor.allocate(sizeof(NetHandler));
263 pollCont_offset = eventProcessor.allocate(sizeof(PollCont));
264
265 if (0 == accept_mss) {
266 REC_ReadConfigInteger(accept_mss, "proxy.config.net.sock_mss_in");
267 }
268
269 // NetHandler - do the global configuration initialization and then
270 // schedule per thread start up logic. Global init is done only here.
271 NetHandler::init_for_process();
272 NetHandler::active_thread_types[ET_NET] = true;
273 eventProcessor.schedule_spawn(&initialize_thread_for_net, ET_NET);
274
275 RecData d;
276 d.rec_int = 0;
277 change_net_connections_throttle(nullptr, RECD_INT, d, nullptr);
278}
279
280void
281UnixNetProcessor::init_socks()

Callers 1

connect_reMethod · 0.45

Calls 4

new_ProxyMutexFunction · 0.85
allocateMethod · 0.45
schedule_spawnMethod · 0.45

Tested by

no test coverage detected