Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
our_own_cloud_project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
die_coolen_jungs
our_own_cloud_project
Commits
b1f72edc
Commit
b1f72edc
authored
11 years ago
by
Vincent Petry
Browse files
Options
Downloads
Patches
Plain Diff
Fixed spaces
parent
52e31405
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/private/davclient.php
+3
-3
3 additions, 3 deletions
lib/private/davclient.php
with
3 additions
and
3 deletions
lib/private/davclient.php
+
3
−
3
View file @
b1f72edc
...
...
@@ -25,7 +25,7 @@
* like request timeout.
*/
class
OC_DAVClient
extends
\Sabre_DAV_Client
{
class
OC_DAVClient
extends
\Sabre_DAV_Client
{
protected
$requestTimeout
;
...
...
@@ -33,12 +33,12 @@ class OC_DAVClient extends \Sabre_DAV_Client{
* @brief Sets the request timeout or 0 to disable timeout.
* @param int timeout in seconds or 0 to disable
*/
public
function
setRequestTimeout
(
$timeout
){
public
function
setRequestTimeout
(
$timeout
)
{
$this
->
requestTimeout
=
(
int
)
$timeout
;
}
protected
function
curlRequest
(
$url
,
$settings
)
{
if
(
$this
->
requestTimeout
>
0
){
if
(
$this
->
requestTimeout
>
0
)
{
$settings
[
CURLOPT_TIMEOUT
]
=
$this
->
requestTimeout
;
}
return
parent
::
curlRequest
(
$url
,
$settings
);
...
...
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