(self)
| 24 | ) |
| 25 | |
| 26 | def premodule(self): |
| 27 | if self.size <= 0: |
| 28 | self.warn("Cannot have a size that's less than or equal to zero (size: {}). Setting to 1.".format(self.size)) |
| 29 | self.size = 1 |
| 30 | |
| 31 | def connection_handler(self, conn): |
| 32 | if conn.clientbytes + conn.serverbytes >= self.size: |