[Twisted-Python] how to drop connection

Christopher Armstrong radix at twistedmatrix.com
Wed Jul 30 00:52:48 MDT 2003


On Wed, Jul 30, 2003 at 04:41:00PM +1000, Andrew Bennetts wrote:
> On Tue, Jul 29, 2003 at 11:33:37PM -0700, Brian Warner wrote:
> >
> > class DroppingHTTPFactory(http.HTTPFactory):
>
> This really should be (also untested):
> 
> class DroppingHTTPFactory(http.HTTPFactory):

Also, OP is probably using server.Site, not HTTPFactory directly. So
it should probably be subclassing that.

-- 
 Twisted | Christopher Armstrong: International Man of Twistery
  Radix  |          Release Manager,  Twisted Project
---------+     http://twistedmatrix.com/users/radix.twistd/




More information about the Twisted-Python mailing list