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
805edf9d
Commit
805edf9d
authored
Apr 09, 2002
by
Martin Pool
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A bit more support for IO phase names.
parent
eca2adb4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
3 deletions
+16
-3
io.c
io.c
+16
-3
No files found.
io.c
View file @
805edf9d
...
...
@@ -52,18 +52,23 @@ extern int io_timeout;
extern
struct
stats
stats
;
const
char
*
const
phase_unknown
=
"unknown"
;
/**
* The connection might be dropped at some point; perhaps because the
* remote instance crashed. Just giving the offset on the stream is
* not very helpful. So instead we try to make io_phase_name point to
* something useful.
*
* For buffered/multiplexed IO these names will be somewhat
* approximate; perhaps for ease of support we would rather make the
* buffer always flush when a single application-level IO finishes.
*
* @todo Perhaps we want some simple stack functionality, but there's
* no need to overdo it.
**/
const
char
*
io_write_phase
=
"unknown"
;
const
char
*
io_read_phase
=
"unknown"
;
const
char
*
io_write_phase
=
phase_unknown
;
const
char
*
io_read_phase
=
phase_unknown
;
/** Ignore EOF errors while reading a module listing if the remote
version is 24 or less. */
...
...
@@ -621,6 +626,14 @@ void write_int(int f,int32 x)
}
void
write_int_named
(
int
f
,
int32
x
,
const
char
*
phase
)
{
io_write_phase
=
phase
;
write_int
(
f
,
x
);
io_write_phase
=
phase_unknown
;
}
/*
* Note: int64 may actually be a 32-bit type if ./configure couldn't find any
* 64-bit types on this platform.
...
...
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