def reject_connection(self, reason=None):
assert self.pending, "<STR_LIT>"<EOL>if reason is None:<EOL><INDENT>reason = ConnectionRefusedError()<EOL><DEDENT>self._accept_d.errback(reason)<EOL>
Reject a pending connection.