MCPcopy Create free account
hub / github.com/apache/trafficserver / operator=

Method operator=

src/cripts/Connections.cc:30–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28const cripts::Matcher::Range::IP cripts::Net::RFC1918({"10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16"});
29
30void
31detail::ConnBase::Pacing::operator=(uint32_t val)
32{
33 _ensure_initialized(_owner);
34 if (val == 0) {
35 val = Off;
36 }
37
38#ifdef SO_MAX_PACING_RATE
39 int connfd = _owner->FD();
40 int res = setsockopt(connfd, SOL_SOCKET, SO_MAX_PACING_RATE, (char *)&val, sizeof(val));
41
42 // EBADF indicates possible client abort
43 if ((res < 0) && (errno != EBADF)) {
44 TSError("[fq_pacing] Error setting SO_MAX_PACING_RATE, errno=%d", errno);
45 }
46#endif
47 _val = val;
48}
49
50void
51detail::ConnBase::TcpInfo::initialize()

Callers

nothing calls this directly

Calls 2

FDMethod · 0.80
TSErrorFunction · 0.50

Tested by

no test coverage detected