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

Method start

src/iocore/net/SSLNetProcessor.cc:52–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50};
51
52int
53SSLNetProcessor::start(int, size_t stacksize)
54{
55 // This initialization order matters ...
56 SSLInitializeLibrary();
57 SSLClientCoordinator::startup();
58 SSLPostConfigInitialize();
59
60 if (!SSLCertificateConfig::startup()) {
61 return -1;
62 }
63 SSLTicketKeyConfig::startup();
64
65 // Initialize SSL statistics. This depends on an initial set of certificates being loaded above.
66 SSLInitializeStatistics();
67
68 if (SSLConfigParams::ssl_ocsp_enabled) {
69 EventType ET_OCSP = eventProcessor.spawn_event_threads("ET_OCSP", 1, stacksize);
70 Continuation *cont = new OCSPContinuation();
71 // schedule the update initially to get things populated
72 eventProcessor.schedule_imm(cont, ET_OCSP);
73 eventProcessor.schedule_every(cont, HRTIME_SECONDS(SSLConfigParams::ssl_ocsp_update_period), ET_OCSP);
74 }
75
76 // We have removed the difference between ET_SSL threads and ET_NET threads,
77 // So just keep on chugging
78 return 0;
79}
80
81NetAccept *
82SSLNetProcessor::createNetAccept(const NetProcessor::AcceptOptions &opt)

Callers

nothing calls this directly

Calls 6

SSLInitializeLibraryFunction · 0.85
SSLPostConfigInitializeFunction · 0.85
SSLInitializeStatisticsFunction · 0.85
spawn_event_threadsMethod · 0.80
schedule_immMethod · 0.45
schedule_everyMethod · 0.45

Tested by

no test coverage detected