MCPcopy Create free account
hub / github.com/DeNA/HandlerSocket-Plugin-for-MySQL / timeval

Class timeval

libhsclient/socket.cpp:83–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81{
82 if (args.timeout != 0 && !args.nonblocking) {
83 struct timeval tv = { };
84 tv.tv_sec = args.timeout;
85 tv.tv_usec = 0;
86 if (setsockopt(fd.get(), SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)) != 0) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected