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

Method init

src/traffic_server/SocksProxy.cc:145–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143ClassAllocator<SocksProxy, false> socksProxyAllocator("socksProxyAllocator");
144
145void
146SocksProxy::init(NetVConnection *netVC)
147{
148 mutex = new_ProxyMutex();
149 buf = new_MIOBuffer(BUFFER_SIZE_INDEX_32K);
150 reader = buf->alloc_reader();
151
152 SCOPED_MUTEX_LOCK(lock, mutex, this_ethread());
153
154 SET_HANDLER(&SocksProxy::acceptEvent);
155
156 handleEvent(NET_EVENT_ACCEPT, netVC);
157}
158
159void
160SocksProxy::free()

Callers 3

mainFunction · 0.45
mainEventMethod · 0.45
new_SocksProxyFunction · 0.45

Calls 3

new_ProxyMutexFunction · 0.85
this_ethreadFunction · 0.85
alloc_readerMethod · 0.80

Tested by

no test coverage detected