Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dCache
cta
Commits
b82e9f3c
Commit
b82e9f3c
authored
7 years ago
by
Michael Davis
Browse files
Options
Downloads
Patches
Plain Diff
[ssi_af_ls] Renames Server Timeout to Request Timeout for consistency
parent
0bac262b
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
xroot_ssi_pb/XrdSsiPbRequest.hpp
+5
-5
5 additions, 5 deletions
xroot_ssi_pb/XrdSsiPbRequest.hpp
xroot_ssi_pb/XrdSsiPbServiceClientSide.hpp
+9
-6
9 additions, 6 deletions
xroot_ssi_pb/XrdSsiPbServiceClientSide.hpp
with
14 additions
and
11 deletions
xroot_ssi_pb/XrdSsiPbRequest.hpp
+
5
−
5
View file @
b82e9f3c
...
...
@@ -51,7 +51,7 @@ template <typename RequestType, typename MetadataType, typename AlertType>
class
Request
:
public
XrdSsiRequest
{
public:
Request
(
const
RequestType
&
request
,
unsigned
int
response_bufsize
,
uint16_t
timeout
);
Request
(
const
RequestType
&
request
,
unsigned
int
response_bufsize
,
uint16_t
request_
timeout
);
virtual
~
Request
()
{
#ifdef XRDSSI_DEBUG
...
...
@@ -118,16 +118,16 @@ private:
*/
template
<
typename
RequestType
,
typename
MetadataType
,
typename
AlertType
>
Request
<
RequestType
,
MetadataType
,
AlertType
>::
Request
(
const
RequestType
&
request
,
unsigned
int
response_bufsize
,
uint16_t
timeout
)
:
Request
(
const
RequestType
&
request
,
unsigned
int
response_bufsize
,
uint16_t
request_
timeout
)
:
m_response_bufsize
(
response_bufsize
)
{
#ifdef XRDSSI_DEBUG
std
::
cerr
<<
"[DEBUG] Request constructor: "
<<
"Response buffer size = "
<<
m_response_bufsize
<<
" bytes, timeout = "
<<
timeout
<<
std
::
endl
;
<<
" bytes,
request
timeout = "
<<
request_
timeout
<<
std
::
endl
;
#endif
// Set
response
timeout
SetTimeOut
(
timeout
);
// Set
XRootD request
timeout
SetTimeOut
(
request_
timeout
);
// Serialize the Request
if
(
!
request
.
SerializeToString
(
&
m_request_str
))
...
...
This diff is collapsed.
Click to expand it.
xroot_ssi_pb/XrdSsiPbServiceClientSide.hpp
+
9
−
6
View file @
b82e9f3c
...
...
@@ -41,7 +41,10 @@ namespace XrdSsiPb {
// Constants
const
unsigned
int
DefaultResponseBufferSize
=
1024
;
//!< Default size for the response buffer in bytes
const
unsigned
int
DefaultServerTimeout
=
15
;
//!< Maximum XRootD reply timeout in secs
const
unsigned
int
DefaultRequestTimeout
=
15
;
//!< Default XRootD request timeout in secs
// Better to get the default from XRD_REQUESTTIMEOUT if it is not set explicitly?
// Decide on order of precedence for setting request timeout
// What about setting stream timeout?
...
...
@@ -54,7 +57,7 @@ class ServiceClientSide
public:
ServiceClientSide
(
const
std
::
string
&
endpoint
,
const
std
::
string
&
resource
,
unsigned
int
response_bufsize
=
DefaultResponseBufferSize
,
unsigned
int
server
_tmo
=
Default
Server
Timeout
);
unsigned
int
request
_tmo
=
Default
Request
Timeout
);
virtual
~
ServiceClientSide
();
...
...
@@ -68,7 +71,7 @@ private:
XrdSsiService
*
m_server_ptr
;
//!< Pointer to XRootD Server object
unsigned
int
m_response_bufsize
;
//!< Buffer size for responses from the XRootD SSI server
unsigned
int
m_
server
_tmo
;
//!< Timeout for a response from the server
unsigned
int
m_
request
_tmo
;
//!< Timeout for a response from the server
};
...
...
@@ -79,10 +82,10 @@ private:
template
<
typename
RequestType
,
typename
MetadataType
,
typename
AlertType
>
ServiceClientSide
<
RequestType
,
MetadataType
,
AlertType
>::
ServiceClientSide
(
const
std
::
string
&
endpoint
,
const
std
::
string
&
resource
,
unsigned
int
response_bufsize
,
unsigned
int
server
_tmo
)
:
unsigned
int
response_bufsize
,
unsigned
int
request
_tmo
)
:
m_resource
(
resource
),
m_response_bufsize
(
response_bufsize
),
m_
server_tmo
(
server
_tmo
)
m_
request_tmo
(
request
_tmo
)
{
#ifdef XRDSSI_DEBUG
std
::
cerr
<<
"[DEBUG] ServiceClientSide() constructor"
<<
std
::
endl
;
...
...
@@ -148,7 +151,7 @@ MetadataType ServiceClientSide<RequestType, MetadataType, AlertType>::Send(const
{
// Instantiate the Request object
auto
request_ptr
=
new
Request
<
RequestType
,
MetadataType
,
AlertType
>
(
request
,
m_response_bufsize
,
m_
server
_tmo
);
auto
request_ptr
=
new
Request
<
RequestType
,
MetadataType
,
AlertType
>
(
request
,
m_response_bufsize
,
m_
request
_tmo
);
auto
future_response
=
request_ptr
->
GetFuture
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment