'This is a quick and dirty way of responding to bad requests.
As described by HTTP standard we should be patient and accept the
whole request from the client before sending a polite bad request
response, even in the case when clients send tons of data.
@param transport: Transport handling connection to the client.
@type transport: L{interfaces.ITransport}'

def _respondToBadRequestAndDisconnect(self):

    self.transport.write('HTTP/1.1    400    Bad    Request\r\n\r\n')
    self.loseConnection()
