[Twisted-Python] how to drop connection

Michael Porter mporter at despammed.com
Thu Jul 31 03:43:47 MDT 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).

Mike.






More information about the Twisted-Python mailing list