Go to the source code of this file.
◆ DO_LOADSHED
Value:if (m_throttle.CheckLoadShed(m_loadshed)) \
{ \
unsigned port; \
std::string host; \
m_throttle.PerformLoadShed(m_loadshed, host, port); \
m_eroute.Emsg("File", "Performing load-shed for client", m_connection_id.c_str()); \
error.setErrInfo(port, host.c_str()); \
}
Definition at line 10 of file XrdThrottleFile.cc.
11{ \
12 unsigned port; \
13 std::string host; \
14 m_throttle.PerformLoadShed(m_loadshed, host, port); \
15 m_eroute.Emsg("File", "Performing load-shed for client", m_connection_id.c_str()); \
16 error.setErrInfo(port, host.c_str()); \
18}
◆ DO_THROTTLE
| #define DO_THROTTLE |
( |
|
amount | ) |
|
Value:DO_LOADSHED \
m_throttle.Apply(amount, 1, m_uid); \
bool ok; \
auto xtimer = m_throttle.StartIOTimer(m_uid, ok); \
if (!ok) { \
error.setErrInfo(EMFILE, "I/O limit exceeded and wait time hit"); \
}
Definition at line 20 of file XrdThrottleFile.cc.
25 { \
26 error.setErrInfo(EMFILE, "I/O limit exceeded and wait time hit"); \
28}