Skip to main content

Long polling HTTP frontend for AMQP

Project description

Generic long poll server used by Launchpad and Landscape.

Dependencies

By default txlongpoll attempts to build without going to the network; instead it tries to find all dependencies from download-cache/dist, and you must download all the dependencies yourself.

If you prefer to use resources from the ‘net, PyPI for example, then:

  • Remove the –setup-source and –download-base options in Makefile to allow bootstrap.py to download setuptools.

  • Comment out the install-from-cache = true line in buildout.cfg to allow bin/buildout to download dependencies.

To run the tests you may also need lp:rabbitfixture (bzr branch lp:rabbitfixture). Build an sdist tarball and drop it into download-cache/dist. You may also need to do the same for testresources-0.2.4_r58 until it reaches PyPI.

txlongpoll needs a recent RabbitMQ with support for rejection. Maverick’s 1.8.0 is not sufficient, but 2.1.1 works fine, so >= Natty is OK.

Building

$ make build

will build only those parts needed to run txlongpoll. No support for tags or testing.

Testing

$ make check

will build all the test-related parts of txlongpoll and then do a full test run, but

$ make bin/test

will just do the first part.

There is testrepository <https://launchpad.net/testrepository> support, so you can also do the following:

$ testr init $ testr run

This is probably the best way to develop txlongpoll.

Running

$ bin/twistd txlongpoll

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

txlongpoll-0.3.2.tar.gz (18.2 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page