hi there, folks:
I'd really like to release 0.7.0 but I would like it to be at least a
little bit tested before I do so. Could those of you with CVS trees check
everything out and see if it performs as advertised? Deeper bugs than
that will have to wait for the next release, but I'd at least like to know
if it works for someone other than me.
______ __ __ _____ _ _
| ____ | \_/ |_____] |_____|
|_____| |_____ | | | |
@ t w i s t e d m a t r i x . c o m
I have a twisted TCP server to listens to client, processes requests, do
mysql database operations if needed (using adbapi Connection pool) and
return the result. Before deploying this in production, I want to know
right way to configure the server.
Since twisted is single threaded, how can I leverage multiple cores of my
production machine (which has 6 cores and 16 GB RAM) ?
One approach that I thought of was to start multiple instances of twisted
server on different ports. This would help in using the other cores as
well. What do you guys suggest ?
I would like to announce txZMQ, ZeroMQ bindings for Twisted. txZMQ is based
on pyzmq and requires recent ØMQ version (>=2.1).
txZMQ uses ØMQ APIs to get file descriptor that is used to signal pending
actions from ØMQ library IO thread running in separate thread. txZMQ should
be usable with any Twisted reactor.
* The socket library that acts as a concurrency framework.
* Carries messages across inproc, IPC, TCP, and multicast.
* Connect N-to-N via fanout, pubsub, pipeline, request-reply.
* Fast enough for clustered products and supercomputing.
* Asynch I/O for scalable multicore message-passing apps.
Bridging ØMQ and Twisted makes a nice match: fast simple messaging between
Twisted instances solving complex problems :)
* PyPi: http://pypi.python.org/pypi/txZMQ/
* Source code: https://github.com/smira/pyzmq
* pyzmq: http://pypi.python.org/pypi/pyzmq
* ØMQ: http://www.zeromq.org/
Qik Web Team Lead
Right now apilinks.py is located in Twisted
at docs/_extensions/apilinks.py, but a copy can also be found in pydoctor
While reporting a bug for apilinks.py in Twisted I was ask to send the
patch upstream in pydoctor 
During the review of the patch in pydoctor, pydoctor's maintainer agreed
that there should be a single copy of this file but don't know what's
involved in achieving that. 
Can someone involved in using apilinks.py in Twisted provide some feedback
regarding distribution of apilinks.py file?
I am trying to modify loglevel withou result. I configure my app logging
inside the tac file as:
logging.basicConfig(level=logging.ERROR, format="%(asctime)s --- %(name)s -
%(levelname)s - %(message)s")
logfile = DailyLogFile("gdumper.log", "/var/log")
logging.basicConfig call seems do not apply as I get both log.msg and
log.err messages into the log. Is there any other way to set up log level?
I've just noticed that the changeset for #5190 included some untested
code. Specifically, there are no tests for the code which detects
missing dependencies and emits warnings about them.
I'd previously noticed that this code was broken but hadn't realized
this was because it was untested.
I don't think there's any disagreement whatsoever over Twisted's testing
requirements. All code must have full line and branch coverage (as
reported by the coverage.py tool). Developers, please write tests for
all of your code (and please learn to do test-driven development - it
will make this task easier, I promise). Reviewers, please don't accept
proposed changes that include untested code.
I wrote a simple IStreamClientEndpointStringParser for using the
SOCKS5ClientEndpoint with Tor:
I modified a txsocksx code example for testing the new endpoint descriptor:
...but I am not sure how to "register" it such that calls to
clientFromString can return this endpoint when the descriptor prefix
mentions placing the plugin in the twisted.plugins package... however this doc:
suggests that I can also set the PYTHONPATH to a directory:
"""if a directory which has been added to sys.path (typically by
adding it to the PYTHONPATH environment variable) contains a directory
named twisted/plugins/ , each .py file in that directory will be
loaded as a source of plugins."""
I'm using twisted 13.2.0 in a virtualenv... and I've tried setting
PYTHONPATH to a "twisted/plugins" directory no avail. I must be doing
something wrong here but after scouring the docs and twisted source
code... I'm just not sure.
This effort is part of solving for Tahoe-LAFS trac ticket 517:
"make tahoe Tor- and I2P-friendly"
Thanks to Glyph and JP's help I was able to write a foolscap client
side patch to use twisted endpoints. See foolscap trac ticket 203:
str4d has already written the foolscap server side endpoint patch...
Therefore it seems to me the next steps are to create parsers for
endpoints we are interested in supporting... and get Tahoe-LAFS to
register them so that serverFromString and clientFromString will
return the expected endpoint objects.
Dear twisted users,
I think I have found some surprising behavior in perspective broker. I
define a subclass of pb.RemoteCache which has a method managed by a
descriptor. The descriptor keeps track of the instances it manages in a set.
When the RemoteCache is first received by the client, it accesses the
descriptor-ified method inside setCopyableState. At that time the
RemoteCache's id is a certain value X. Then later when the RemoteCache is
notified of a change by the server side Cacheable, it again accesses the
descriptor-ified method, but at this time it's id is Y, and Y!=X.
I attach to this post a simple working example which displays the behavior
described above. To run, first run server.py and then run client.py. You
will see a little bit of output, the most important part being
Client received RemoteCache: id=45952496
Asking server to update
TD 45921680 (test.RemoteCache.add) accessed by <test.RemoteCache instance
at 2BD2DC8>: id=45952456
To understand the details of the output please see descriptor.py. The id of
the RemoteCache is first reported as 45952496 when the client receives it.
Then, when the descriptor is accessed, the id of the accessing instance is
reported as 45952456, which is different. Then, when in the last line we
print out the id of the RemoteCache we're back to 45952496.
Is there some reason that a RemoteCache's id can change during its life
Department of Physics
University of California
Santa Barbara, CA 93117
Hi everyone, here’s a new Twisted 14.0 prerelease for you!
Tarballs for this prerelease can be found at <http://twistedmatrix.com/Releases/pre/14.0.0pre3>, with the changelog at <http://twistedmatrix.com/Releases/pre/14.0.0pre3/NEWS.txt>.
Changes from the previous prerelease include:
- Making Twisted Agent do HTTPS hostname verification.
For more information and a full list of changes, check the NEWS.txt file.
Please download the tarballs and test them with your applications, so we can make sure we’re all ready for release!