Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
f0fd9fdb
Commit
f0fd9fdb
authored
Feb 20, 2017
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prevent callers from recognizing read errors
parent
5e76a4dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
internal/helper/writeafterreader.go
internal/helper/writeafterreader.go
+4
-0
No files found.
internal/helper/writeafterreader.go
View file @
f0fd9fdb
package
helper
import
(
"fmt"
"io"
"io/ioutil"
"os"
...
...
@@ -35,6 +36,9 @@ func (r *busyReader) Read(p []byte) (int, error) {
n
,
err
:=
r
.
Reader
.
Read
(
p
)
if
err
!=
nil
{
if
err
!=
io
.
EOF
{
err
=
fmt
.
Errorf
(
"busyReader: %v"
,
err
)
}
r
.
setError
(
err
)
}
return
n
,
err
...
...
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