8k limit on gen_tcp:recv?

Rachel Willmer <>
Thu Mar 11 00:40:11 CET 2010

I've been debugging a problem whereby couchdb rejects a URL longer than 8k.

At first, I thought it was an already known limitation in mochiweb
(the stack is couchdb/mochiweb/erlang).

But with large amounts of ioformat debugging, I've pinned it down to a
call from mochiweb to gen_tcp:recv which fails on this long URL.

Is this a known limitation in erlang's gen_tcp:recv?


More information about the erlang-questions mailing list