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
File details
Details for the file txlongpoll-0.3.2.tar.gz
.
File metadata
- Download URL: txlongpoll-0.3.2.tar.gz
- Upload date:
- Size: 18.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8f92c653163298ab69f935cb4d5a82be0207fbc41745759eab1166708676842 |
|
MD5 | 133cd2f9c26af0ea4efc9a4658d79ec0 |
|
BLAKE2b-256 | 52bb2244441208faaf0c006f801a6c7f6a969e7b89febac3a672447e32d0efca |