MCPcopy Create free account
hub / github.com/3rdparty/libprocess / finalize

Method finalize

src/http.cpp:2166–2179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2164
2165protected:
2166 void finalize() override
2167 {
2168 // If we started the accept loop then discard it and any clients
2169 // we are already serving.
2170 accepting.discard();
2171
2172 // NOTE: we know that no more sockets will be accepted because
2173 // the accept loop is on `self()` and we're in `finalize()`.
2174 foreachvalue (Client& client, clients) {
2175 client.serving.discard();
2176 }
2177
2178 clients.clear();
2179 }
2180
2181private:
2182 network::Socket socket;

Callers

nothing calls this directly

Calls 1

discardMethod · 0.45

Tested by

no test coverage detected