def close_if_idle(self):
if not self.parser:<EOL><INDENT>self.transport.close()<EOL>return True<EOL><DEDENT>return False<EOL>
Close the connection if a request is not being sent or received

        :return: boolean - True if closed, false if staying open