[Twisted-Python] how to drop connection
mporter at despammed.com
Thu Jul 31 05:43:47 EDT 2003
From: "Christopher Armstrong" <radix at twistedmatrix.com>
> 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.
Thanks, this works perfectly (subclassing Site in my case as you suspected).
More information about the Twisted-Python