[Twisted-Python] Things I broke
exarkun at intarweb.us
Mon Feb 3 19:06:51 EST 2003
Currently two pieces of code (that I can find) rely on app.listenTCP() to
bind to a unix socket if the port parameter is a string instead of an
integer. This no longer works (and rightly so). However, there is
currently no twisted.internet.app.Application.listenUNIX method. Adding one
(along w/ connectUNIX) would solve the problem. As would using the
listenWith method instead.
I don't know what the thoughts on the portability of the methods in
Application are - is adding listen/connectUNIX appropriate?
I feel a minor twinge at the thought of using listen/connectWith for this,
as twisted.internet.unix is an internal module, and it is probably wrong to
use such an internal module in one of the places (Twisted.web's tap's
--personal flag) and definitely wrong in the other
(doc/examples/silly-web.py). These methods were intended for
connectors/ports not included with Twisted, not as a workaround for missing
Seduced, shaggy Samson snored.
She scissored short. Sorely shorn,
Soon shackled slave, Samson sighed,
Some savage, spectacular suicide.
-- Stanislaw Lem, "Cyberiad"
up 50 days, 3:50, 3 users, load average: 0.09, 0.10, 0.04
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
Url : http://twistedmatrix.com/pipermail/twisted-python/attachments/20030203/de215a61/attachment.pgp
More information about the Twisted-Python