cancelCopy

open override fun cancelCopy()

Abandons the transfer and returns the connection to a usable state.

Does nothing if the transfer has already finished. For a COPY IN this discards everything already written; the server never commits a partial copy.