Skip to content

Commit

Permalink
Merge pull request #14630 from mmaxs/read-vs-exceptions
Browse files Browse the repository at this point in the history
make 'read!(::Base.LibuvStream, ::Array{UInt8, 1})' indicate the number of bytes actually received on EOFError
  • Loading branch information
tkelman committed Jan 20, 2016
2 parents a75d03c + bcc6e2f commit 2319785
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/stream.jl
Original file line number Diff line number Diff line change
Expand Up @@ -931,7 +931,7 @@ function read!(s::LibuvStream, a::Array{UInt8, 1})
finally
s.buffer = sbuf
if !isempty(s.readnotify.waitq)
start_reading(x) # resume reading iff there are currently other read clients of the stream
start_reading(s) # resume reading iff there are currently other read clients of the stream
end
end
end
Expand Down

0 comments on commit 2319785

Please sign in to comment.