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

Function SetNoDelay

phxsqlproxy/phxsqlproxyutil.cpp:39–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37namespace phxsqlproxy {
38
39int SetNoDelay(int sock_fd) {
40 int one = 1;
41 return setsockopt(sock_fd, IPPROTO_TCP, TCP_NODELAY, &one, sizeof(one));
42}
43
44bool IsNonBlock(int sock_fd) {
45 int flags;

Callers 1

runMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected