curl mydb / _changes?feed =大约20秒后连续断开连接

时间:2017-06-28 19:34:12

标签: ibm-cloud cloudant

根据API参考,continuous参数将保持连接打开。但是,以下curl命令在大约20秒后返回,根据API参考,这似乎不正确。有人能解释一下吗?感谢。

curl https://cloudant-URL-bluemix.cloudant.com/mydb/_changes?feed=continuous --http1.1

返回:

  

“last_seq”: “11-g1AAAAYeeJy11M1NwzAUB3DTIiFOdAM4wLElbpzYPtENYAPw84dKlaYItWfYADaADWAD2AA2gA3KBsWuEampSpIiLo4UWb9_3nt2MoRQq99U6ECBHF3qngIcdWDYlrKtRNaO4o7MRhMl8nEn1-PMbm8IBDuz2WzQb4qNoX2xRSQXkkZVERe3_70zLUmDll1h9ysQzQM5JEaBDdye5Eqb81yrEE3K0D2HHgYoIZIow1ej3TI0cuhRiBolKFtCa3Qbek49DlXNmDB69afSMvTEoacBGiexTDX9Q1PPHDoKUYkBuuSX-nGZeuHUq-DAqTQ2WsRVnZodzzftiq7tw4beuNTGPFXTLgCV_3PMfeitD70rQqXAnLGkIlVvYD7z3mc-FEMTmCjtCl33Jnj40cNPDm76YjTXkUgrUmuN7dmHvhTVUA1M8KUjWHc0rx5-W7iF1EQGx-tfGA-_e3hazJwTLhmBitSPNlWbzYcPXfyncqmxYovVDD4Bc-FGBG”, “未决”:0}

1 个答案:

答案 0 :(得分:0)

尝试:

StyleIndex

如果报告没有变化,可能会超时。见

http://docs.couchdb.org/en/2.0.0/api/database/changes.html