MCPcopy Create free account
hub / github.com/Tencent/phxsql / ReleaseFD

Method ReleaseFD

phxsqlproxy/io_routine.cpp:95–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95void IORoutine::ReleaseFD(int & fd) {
96 if (fd != -1) {
97 shutdown(fd, SHUT_RDWR);
98 close(fd);
99 fd = -1;
100 }
101}
102
103void IORoutine::ClearAll() {
104 if (client_fd_ != -1 || sqlsvr_fd_ != -1) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected