[
https://issues.apache.org/jira/browse/COUCHDB-2767?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Alexander Shorin resolved COUCHDB-2767.
---------------------------------------
Resolution: Fixed
Assignee: Robert Newson
Fix Version/s: 2.0.0
Fixed in
[e691ec3|https://git-wip-us.apache.org/repos/asf?p=couchdb-chttpd.git;h=e691ec3].
> 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: HTTP Interface
> Reporter: Will Holley
> Assignee: Robert Newson
> Priority: Blocker
> Fix For: 2.0.0
>
>
> _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)