benoitc / couchbeam

Apache CouchDB client in Erlang
Other
242 stars 113 forks source link

gen_changes continuous changes notification errors out after second timeout #66

Closed aceleste closed 12 years ago

aceleste commented 12 years ago

description of failure: when starting a module with gen_changes behaviour with a continuous change option, the first changes request issued by gen_changes will work. Then after the default 60s timeout the connection is closed by the couchdb server. gen_changes restarts the connection, issuing a request with option since=your_changes_last_seq. If no more change happens on the database, a second timeout will occur, but gen_changes will then issue a request with option since=undefined which is malformed and thus will put the server into error and close the connection. It then loops restarting an failing forever.

conditions for failure: using test_gen_changes with options [continuous, include_docs, {filter,"app/filtername}]

more info: the malformed request not only contains one since=undefined option, but many (it may help finding out where in the code that is produced.

benoitc commented 12 years ago

which version ?

aceleste commented 12 years ago

couchbeam commit 64216bfdfcc5bce6c12b6e22b337daa428f1ae7f couchdb 1.0.1.

Alain CELESTE *Directeur des tudes, Recherche et Dveloppement


11 quai Barbusse 44 000 Nantes Tl.: +33 (0) 675 463 746 Fax: +33 (0) 240 389 867 http://www.4modtechnology.com


* Disclaimer: This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.

2012/2/9 Benoit Chesneau < reply@reply.github.com

which version ?


Reply to this email directly or view it on GitHub: https://github.com/benoitc/couchbeam/issues/66#issuecomment-3879452