daleharvey/jquery.couch.js — pull request #8 by radicand (2012-04-10 22:46:34+00:00)
Title: Close HTTP connection when we issue stop() on a _changes feed

Right now, calling stop() on a _changes feed only prevents it from renewing itself when an update comes through, or when page navigation cleans things up on its own.

For long-lived pages, this becomes an issue, as many open HTTP connections can begin to build up and (in some instances) prevent further calls to Couch until the open connections are closed. This is the reason behind this bugfix.

It is possible that some people may open _changes, call stop() and then rely on that behavior to return only one update-- but this is bad practice in general and easy to adjust for; versus calls to Couch stopping to work altogether.