Will Holley created COUCHDB-2767:
------------------------------------
Summary: CouchDB 2.X: _changes?feed=longpoll returns an invalid
response
Key: COUCHDB-2767
URL: https://issues.apache.org/jira/browse/COUCHDB-2767
Project: CouchDB
Issue Type: Bug
Security Level: public (Regular issues)
Components: Database Core
Reporter: Will Holley
_changes?feed=longpoll seems to be broken in CouchDB master.
In CouchDB 1.6.1:
{code}
$ curl http://127.0.0.1:5984/testlongpoll -XPUT
{"ok":true}
$ curl 'http://127.0.0.1:5984/testlongpoll/_changes?feed=longpoll'
{"results":[
],
"last_seq":0}
{code}
For the last request, the connection is held open (as expected) before the
final part of the response is returned.
In CouchDB 2.X/master:
{code}
$ curl 'http://127.0.0.1:15984/testlongpoll' -XPUT
{"ok":true}
$curl 'http://127.0.0.1:15984/testlongpoll/_changes?feed=longpoll'
{"results":[
{code}
CouchDB 2.X closes the connection immediately, resulting in invalid JSON.
The PouchDB test suite detected this around 13 days ago, coinciding with
https://github.com/apache/couchdb-chttpd/commit/3866725ee99c6d89aff91ecb70a3b3cbbabaed8c,
so I'd guess this is the first place to investigate.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)