This prevents duplicating input when SSL is involved, causing commands pipelined
after authenticate commands from being duplicated. This issue emerged when login
proxy was changed to use the iostream pump/proxy. This means that the proxy uses
streams rather than raw FDs, which means that data buffered in input stream
before proxy is inherently forwarded to the post-login service... a second time.
data = i_stream_get_data(client->input, &size);
buffer_append(buf, data, size);
req.data_size = buf->used;
+ i_stream_skip(client->input, size);
client->auth_finished = ioloop_time;