a gio.IOStream that will replace connection. This might be the same as connection, in which case a reference will be added.
GException on failure.