Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
8367ac24
Commit
8367ac24
authored
Nov 13, 2015
by
Mike Hibler
Browse files
Increase the timeout when talking to the master server.
parent
e87ab05c
Changes
1
Hide whitespace changes
Inline
Side-by-side
clientside/os/frisbee.redux/upload.c
View file @
8367ac24
...
...
@@ -81,12 +81,31 @@ int
main
(
int
argc
,
char
**
argv
)
{
PutReply
reply
;
int
timo
=
5
;
/* XXX */
int
rv
;
int
timo
,
rv
;
parse_args
(
argc
,
argv
);
ClientLogInit
();
/*
* Set a timeout for talking to the master server.
* Use the idletimout if explicitly set (>0),
* otherwise use the overall timeout if explicitly set (>0),
* otherwise the overall timeout is based on image size and
* we may not know that, so just pick a big number!
*
* XXX The current master server is single-threaded and waits for a
* couple of seconds after spawning a worker process to see if it
* dies immediately. So what might seem like a reasonable delay of 5
* seconds really isn't if there are even three requests in the
* master server queue ahead of us!
*/
if
(
idletimeout
>
0
)
timo
=
idletimeout
;
else
if
(
timeout
>
0
)
timo
=
timeout
;
else
timo
=
60
;
/* XXX */
/* Special case: streaming from stdin */
if
(
strcmp
(
uploadpath
,
"-"
)
==
0
)
{
filesize
=
0
;
...
...
Write
Preview
Supports
Markdown
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