def patch_transport_abortConnection(transport, protocol):
def abortConnection():<EOL><INDENT>protocol._fake_connection_aborted = True<EOL>transport.loseConnection()<EOL><DEDENT>patch_if_missing(transport, '<STR_LIT>', abortConnection)<EOL>
Patch abortConnection() onto the transport if it doesn't already have it.
(`Agent` assumes its transport has this.)