Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
37
namespace phxsqlproxy {
38
39
int SetNoDelay(int sock_fd) {
40
int one = 1;
41
return setsockopt(sock_fd, IPPROTO_TCP, TCP_NODELAY, &one, sizeof(one));
42
}
43
44
bool IsNonBlock(int sock_fd) {
45
int flags;
Callers
1
run
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected