XRootD
Loading...
Searching...
No Matches
XrdClHttpOps.cc File Reference
#include "XrdClHttpOps.hh"
#include "XrdClHttpHeaderBuilder.hh"
#include "XrdClHttpResponses.hh"
#include "XrdClHttpUtil.hh"
#include "XrdClHttpWorker.hh"
#include <XrdCl/XrdClDefaultEnv.hh>
#include <XrdCl/XrdClLog.hh>
#include <XrdCl/XrdClXRootDResponses.hh>
#include <arpa/inet.h>
#include <unistd.h>
#include <cerrno>
#include <chrono>
#include <cmath>
#include <sys/random.h>
#include <utility>
Include dependency graph for XrdClHttpOps.cc:

Go to the source code of this file.

Functions

std::chrono::steady_clock::time_point CalculateExpiry (struct timespec timeout)

Function Documentation

◆ CalculateExpiry()

std::chrono::steady_clock::time_point CalculateExpiry ( struct timespec timeout)

Definition at line 161 of file XrdClHttpOps.cc.

161 {
162 if (timeout.tv_sec == 0 && timeout.tv_nsec == 0) {
163 return std::chrono::steady_clock::now() + std::chrono::seconds(30);
164 }
165 return std::chrono::steady_clock::now() + std::chrono::seconds(timeout.tv_sec) + std::chrono::nanoseconds(timeout.tv_nsec);
166}

References CalculateExpiry().

Referenced by XrdClHttp::CurlOperation::CurlOperation(), CalculateExpiry(), and XrdClHttp::CurlOperation::ExtendDeadline().

Here is the call graph for this function:
Here is the caller graph for this function: