MCPcopy Create free account
hub / github.com/F-Stack/f-stack / FreeTcpKeepConn

Method FreeTcpKeepConn

adapter/micro_thread/mt_connection.cpp:581–598  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

579}
580
581void TcpKeepMgr::FreeTcpKeepConn(TcpKeepConn* conn, bool force_free)
582{
583 if (force_free)
584 {
585 conn->Reset();
586 _mem_queue.FreePtr(conn);
587 return;
588 }
589 else
590 {
591 if (!CacheTcpKeepConn(conn))
592 {
593 conn->Reset();
594 _mem_queue.FreePtr(conn);
595 return;
596 }
597 }
598}
599
600int UdpSessionConn::CreateSocket()
601{

Callers 2

FreeConnectionMethod · 0.80
CloseIdleTcpKeepMethod · 0.80

Calls 2

FreePtrMethod · 0.80
ResetMethod · 0.45

Tested by

no test coverage detected