summaryrefslogtreecommitdiff
path: root/src/couchdb/couch_rep_att.erl
diff options
context:
space:
mode:
authorFilipe David Borba Manana <fdmanana@apache.org>2010-07-16 22:55:14 +0000
committerFilipe David Borba Manana <fdmanana@apache.org>2010-07-16 22:55:14 +0000
commit2cb0b6ba823521792ad481d6faf8e52af09c531f (patch)
treef7edabad29cd09fac7507a8c7bd57fb131a360a4 /src/couchdb/couch_rep_att.erl
parentaa979801f94952acd558f7809417b40104846cfb (diff)
Revert revision 964956 (COUCHDB-827) - solution had secondary effects.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@964969 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb/couch_rep_att.erl')
-rw-r--r--src/couchdb/couch_rep_att.erl8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/couchdb/couch_rep_att.erl b/src/couchdb/couch_rep_att.erl
index 367afbb5..28b8945c 100644
--- a/src/couchdb/couch_rep_att.erl
+++ b/src/couchdb/couch_rep_att.erl
@@ -81,12 +81,8 @@ receive_data(Ref, ReqId, ContentEncoding) ->
% ?LOG_DEBUG("got ~p bytes for ~p", [size(Data), ReqId]),
Data;
{ibrowse_async_response_end, ReqId} ->
- % This means ibrowse received all the data it was supposed to.
- % In case of not receiving the whole data, due to a network link
- % failure for example, we would have received an error message.
- % In other words, this message doesn't represent an error - look into
- % ibrowse_http_client.erl.
- eof
+ ?LOG_ERROR("streaming att. ended but more data requested ~p", [ReqId]),
+ throw({attachment_request_failed, premature_end})
after 31000 ->
throw({attachment_request_failed, timeout})
end.