MCPcopy Create free account
hub / github.com/alibaba/PhotonLibOS / release

Method release

net/pooled_socket.cpp:231–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

229 }
230
231 bool release(const EndPoint& ep, ISocketStream* stream) {
232 auto fd = stream->get_underlay_fd();
233 ERRNO err;
234 if (!stream_reusable(fd)) return false;
235 auto node = new StreamListNode(ep, stream, fd, TTL_us);
236 push_into_pool(node);
237 errno = err.no;
238 return true;
239 }
240
241 void collect() {
242 StreamListNode* nodes[16];

Callers 5

do_connectMethod · 0.45
get_from_poolMethod · 0.45
do_resolveMethod · 0.45
do_roundtripMethod · 0.45

Calls 1

get_underlay_fdMethod · 0.45

Tested by

no test coverage detected