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
81791cfc
Commit
81791cfc
authored
Nov 04, 1998
by
Andrew Tridgell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added timeout option in rsyncd.conf
parent
2fb27e91
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
49 additions
and
33 deletions
+49
-33
clientserver.c
clientserver.c
+5
-0
loadparm.c
loadparm.c
+4
-0
rsyncd.conf.yo
rsyncd.conf.yo
+40
-33
No files found.
clientserver.c
View file @
81791cfc
...
...
@@ -314,6 +314,11 @@ static int rsync_module(int fd, int i)
exit_cleanup
(
RERR_SYNTAX
);
}
if
(
lp_timeout
(
i
))
{
extern
int
io_timeout
;
io_timeout
=
lp_timeout
(
i
);
}
start_server
(
fd
,
fd
,
argc
,
argp
);
return
0
;
...
...
loadparm.c
View file @
81791cfc
...
...
@@ -130,6 +130,7 @@ typedef struct
char
*
exclude
;
char
*
exclude_from
;
char
*
log_format
;
int
timeout
;
}
service
;
...
...
@@ -152,6 +153,7 @@ static service sDefault =
NULL
,
/* exclude */
NULL
,
/* exclude from */
"%o %h [%a] %m (%u) %f %l"
,
/* log format */
0
/* timeout */
};
...
...
@@ -242,6 +244,7 @@ static struct parm_struct parm_table[] =
{
"log file"
,
P_STRING
,
P_GLOBAL
,
&
Globals
.
log_file
,
NULL
,
0
},
{
"pid file"
,
P_STRING
,
P_GLOBAL
,
&
Globals
.
pid_file
,
NULL
,
0
},
{
"timeout"
,
P_INTEGER
,
P_LOCAL
,
&
sDefault
.
timeout
,
NULL
,
0
},
{
"name"
,
P_STRING
,
P_LOCAL
,
&
sDefault
.
name
,
NULL
,
0
},
{
"comment"
,
P_STRING
,
P_LOCAL
,
&
sDefault
.
comment
,
NULL
,
0
},
{
"path"
,
P_STRING
,
P_LOCAL
,
&
sDefault
.
path
,
NULL
,
0
},
...
...
@@ -330,6 +333,7 @@ FN_LOCAL_STRING(lp_secrets_file, secrets_file)
FN_LOCAL_STRING
(
lp_exclude
,
exclude
)
FN_LOCAL_STRING
(
lp_exclude_from
,
exclude_from
)
FN_LOCAL_STRING
(
lp_log_format
,
log_format
)
FN_LOCAL_INTEGER
(
lp_timeout
,
timeout
)
/* local prototypes */
static
int
strwicmp
(
char
*
psz1
,
char
*
psz2
);
...
...
rsyncd.conf.yo
View file @
81791cfc
...
...
@@ -107,39 +107,6 @@ ftp, kern, lpr, mail, news, security, syslog, user, uucp, local0,
local1, local2, local3, local4, local5, local6 and local7. The default
is daemon.
dit(bf(transfer logging)) The "transfer logging" option enables per-file
logging of downloads and uploads in a format somewhat similar to that
used by ftp daemons. If you want to customise the log formats look at
log_send, log_recv and log_transfer in log.c
dit(bf(log format)) The "log format" option allows you to specify the
format used for logging file transfers when transfer logging is
enabled. The format is a text string containing embedded single
character escape sequences prefixed with a percent (%) character.
The prefixes that are understood are:
itemize(
it() %h for the remote host name
it() %a for the remote IP address
it() %l for the length of the file in bytes
it() %p for the process id of this rsync session
it() %o for the operation, which is either "send" or "recv"
it() %f for the filename
it() %P for the module path
it() %m for the module name
it() %t for the current time
it() %u for the authenticated username (or the null string)
it() %b for the number of bytes actually transferred
it() %c when sending files this gives the number of checksum bytes
received for this file
)
The default log format is "%o %h [%a] %m (%u) %f %l"
A perl script called rsyncstats to summarise this format is included
in the rsync source code distribution.
dit(bf(socket options)) This option can provide endless fun for people
who like to tune their systems to the utmost degree. You can set all
sorts of socket options which may make transfers faster (or
...
...
@@ -279,6 +246,46 @@ rejected. See the "hosts allow" option for more information.
The default is no "hosts deny" option, which means all hosts can connect.
dit(bf(transfer logging)) The "transfer logging" option enables per-file
logging of downloads and uploads in a format somewhat similar to that
used by ftp daemons. If you want to customise the log formats look at
the log format option.
dit(bf(log format)) The "log format" option allows you to specify the
format used for logging file transfers when transfer logging is
enabled. The format is a text string containing embedded single
character escape sequences prefixed with a percent (%) character.
The prefixes that are understood are:
itemize(
it() %h for the remote host name
it() %a for the remote IP address
it() %l for the length of the file in bytes
it() %p for the process id of this rsync session
it() %o for the operation, which is either "send" or "recv"
it() %f for the filename
it() %P for the module path
it() %m for the module name
it() %t for the current time
it() %u for the authenticated username (or the null string)
it() %b for the number of bytes actually transferred
it() %c when sending files this gives the number of checksum bytes
received for this file
)
The default log format is "%o %h [%a] %m (%u) %f %l"
A perl script called rsyncstats to summarise this format is included
in the rsync source code distribution.
dit(bf(timeout)) The "timeout" option allows you to override the
clients choice for IO timoeut for this module. Using this option you
can ensure that rsync won't wait on a dead client forever. The timeout
is specified in seconds. A value of zero means no timeout and is the
default. A good choice for anonymous rsync servers may be 600 (giving
a 10 minute timeout).
enddit()
manpagesection(AUTHENTICATION STRENGTH)
...
...
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