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

Function synserver_delete

src/api/InkAPITest.cc:869–888  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

867}
868
869static int
870synserver_delete(SocketServer *s)
871{
872 if (s != nullptr) {
873 TSAssert(s->magic == MAGIC_ALIVE);
874 synserver_stop(s);
875
876 if (s->accept_cont) {
877 TSContDestroy(s->accept_cont);
878 s->accept_cont = nullptr;
879 Dbg(dbg_ctl_SockServer, "destroyed accept cont");
880 }
881
882 s->magic = MAGIC_DEAD;
883 TSfree(s);
884 Dbg(dbg_ctl_SockServer, "deleted server");
885 }
886
887 return 1;
888}
889
890static int
891synserver_vc_refuse(TSCont contp, TSEvent event, void *data)

Callers 6

mytest_handlerFunction · 0.85
~ParentTestMethod · 0.85
cache_hook_handlerFunction · 0.85
transform_hook_handlerFunction · 0.85
altinfo_hook_handlerFunction · 0.85
cont_test_handlerFunction · 0.85

Calls 3

synserver_stopFunction · 0.85
TSContDestroyFunction · 0.85
TSfreeFunction · 0.85

Tested by

no test coverage detected