All,
Do I need to change a proxy buffer or some other setting to be able to successfully receive more data from .capture()?
I'm using nginx 1.6.2 on Ubuntu with this script:
https://github.com/dholth/pouchdb-bulk-get/blob/master/nginx/dbproxy.lua
and this nginx config:
https://github.com/dholth/pouchdb-bulk-get/blob/master/nginx/dbproxy.conf#L43
which does a bunch of subrequests to effect many GET requests in a single request. The lua script is supposed to stream out each subrequest body as it is received.
However I started noticing that I would get invalid json for larger requests. This is because many of the .capture() subrequests are truncated. NGINX complains about "connection reset by peer" but the reverse-proxied CouchDB peer does not complain.
The maximum line length is 38395 bytes...
Thanks,
Daniel