Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-devel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
143
Issues
143
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
emulab
emulab-devel
Commits
66057123
Commit
66057123
authored
Aug 14, 2015
by
Mike Hibler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix uploader timeout code. Was not being properly detected.
parent
c7c7cec8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
11 deletions
+8
-11
clientside/os/frisbee.redux/frisuploader.c
clientside/os/frisbee.redux/frisuploader.c
+7
-7
clientside/os/frisbee.redux/upload.c
clientside/os/frisbee.redux/upload.c
+1
-4
No files found.
clientside/os/frisbee.redux/frisuploader.c
View file @
66057123
/*
* Copyright (c) 2010-201
4
University of Utah and the Flux Group.
* Copyright (c) 2010-201
5
University of Utah and the Flux Group.
*
* {{{EMULAB-LICENSE
*
...
...
@@ -277,10 +277,7 @@ recv_file()
cc
=
remaining
;
ncc
=
conn_read
(
conn
,
wbuf
,
cc
);
if
(
ncc
<
0
)
{
if
(
conn_timeout
(
conn
))
rv
=
2
;
else
FrisPwarning
(
"socket read"
);
FrisPwarning
(
"socket read"
);
goto
done
;
}
if
(
ncc
==
0
)
...
...
@@ -297,8 +294,11 @@ recv_file()
goto
done
;
}
}
/* Note that coming up short (remaining > 0) is not an error */
rv
=
0
;
/*
* Note that coming up short (remaining > 0) is not an error
* unless we timed out.
*/
rv
=
conn_timeout
(
conn
)
?
2
:
0
;
done:
gettimeofday
(
&
et
,
NULL
);
...
...
clientside/os/frisbee.redux/upload.c
View file @
66057123
...
...
@@ -577,10 +577,7 @@ send_file(void)
cc
=
conn_write
(
conn
,
rbuf
,
ncc
);
if
(
cc
<
0
)
{
if
(
conn_timeout
(
conn
))
rv
=
2
;
else
FrisPwarning
(
"socket write"
);
FrisPwarning
(
"socket write"
);
goto
done
;
}
remaining
-=
cc
;
...
...
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