On Wed, Jan 29, 2014 at 11:34 AM, Nick North <notifications@github.com>wrote:

> In src/couchdb/couch_httpd_db.erl:
>
> > @@ -687,14 +700,27 @@ send_ranges_multipart(Req, ContentType, Len, Att, Ranges) ->
> >      {ok, Resp}.
> >
> >  receive_request_data(Req) ->
> > -    receive_request_data(Req, couch_httpd:body_length(Req)).
> > -
> > -receive_request_data(Req, LenLeft) when LenLeft > 0 ->
> > -    Len = erlang:min(4096, LenLeft),
> > -    Data = couch_httpd:recv(Req, Len),
> > -    {Data, fun() -> receive_request_data(Req, LenLeft - iolist_size(Data)) end};
> > -receive_request_data(_Req, _) ->
> > -    throw(<<"expected more data">>).
> > +    Parent = self(),
> > +	Ref = make_ref(),
> > +    Receiver = spawn_link(fun() ->
>
> @benoitc <https://github.com/benoitc> Did you manage to make any progress
> on removing this spawned process? There's no big hurry as I'm about to go
> on holiday for a couple of weeks, but it would be nice to merge this branch
> (with @davisp <https://github.com/davisp>'s suggestions) fairly soon
> after I get back if there are no objections.
>

Sorry I have been busy last days and couldn't work on it as I expected.
Maybe you can already merge it in a feature branch now. I will provide one
sometimes in the week now.

 - benoit