Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liblongpath-rsync
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liblongpath
liblongpath-rsync
Commits
4655dcf2
Commit
4655dcf2
authored
Nov 07, 2009
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Give noop_io_until_death() a time limit.
parent
f9185203
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
io.c
io.c
+2
-1
No files found.
io.c
View file @
4655dcf2
...
@@ -807,6 +807,7 @@ void noop_io_until_death(void)
...
@@ -807,6 +807,7 @@ void noop_io_until_death(void)
char
buf
[
1024
];
char
buf
[
1024
];
kluge_around_eof
=
1
;
kluge_around_eof
=
1
;
set_io_timeout
(
10
);
while
(
1
)
while
(
1
)
read_buf
(
iobuf
.
in_fd
,
buf
,
sizeof
buf
);
read_buf
(
iobuf
.
in_fd
,
buf
,
sizeof
buf
);
...
@@ -1324,7 +1325,7 @@ static void read_a_msg(void)
...
@@ -1324,7 +1325,7 @@ static void read_a_msg(void)
if
(
!
io_timeout
||
io_timeout
>
val
)
{
if
(
!
io_timeout
||
io_timeout
>
val
)
{
if
(
INFO_GTE
(
MISC
,
2
))
if
(
INFO_GTE
(
MISC
,
2
))
rprintf
(
FINFO
,
"Setting --timeout=%d to match server
\n
"
,
val
);
rprintf
(
FINFO
,
"Setting --timeout=%d to match server
\n
"
,
val
);
io_timeout
=
val
;
set_io_timeout
(
val
)
;
}
}
break
;
break
;
case
MSG_NOOP
:
case
MSG_NOOP
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment