[erlang-questions] 8k limit on gen_tcp:recv?
Mon Mar 22 15:52:55 CET 2010
On 22 March 2010 13:10, Bob Ippolito <> wrote:
> Is changing the limit from 8k to 16k really the best solution? Beyond
> technical reasons, e.g. some kinds of proxies might limit URL length,
> is there a guarantee that all CouchDB URLs will be shorter than 16k?
It's a good enough solution for what I need right now, (which is to be
able to replicate some very large couchdb databases without the system
But I'd agree that it's probably not the "best" solution, and I
wouldn't suggest changing the default buffer size.
I'm going to do some further digging around inside the couchdb code to
figure out why these long URLs are being generated in the first place.
There is supposed to be code in there which splits the request into
multiple requests if the revision list is too long, but that doesn't
seem to be working. Fixing that would be a better solution.
More information about the erlang-questions