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

Method init_comm

include/proxy/FetchSM.h:47–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45 static bool is_initialized();
46
47 void
48 init_comm()
49 {
50 cont_mutex.clear();
51 req_buffer = new_MIOBuffer(HTTP_HEADER_BUFFER_SIZE_INDEX);
52 req_reader = req_buffer->alloc_reader();
53 resp_buffer = new_MIOBuffer(BUFFER_SIZE_INDEX_32K);
54 resp_reader = resp_buffer->alloc_reader();
55 http_parser_init(&http_parser);
56 client_response_hdr.create(HTTP_TYPE_RESPONSE);
57 SET_HANDLER(&FetchSM::fetch_handler);
58 }
59
60 void
61 init(Continuation *cont, TSFetchWakeUpOptions options, TSFetchEvent events, const char *headers, int length, sockaddr const *addr)

Callers

nothing calls this directly

Calls 4

http_parser_initFunction · 0.85
alloc_readerMethod · 0.80
clearMethod · 0.45
createMethod · 0.45

Tested by

no test coverage detected