i_stream_is_eof() returns TRUE also when streams have an error, so all
errors were logged the same as a regular disconnection.
i_assert(ret != -2);
if (ret < 0) {
- if (i_stream_is_eof(parser->input))
+ i_assert(parser->input->eof);
+ if (parser->input->stream_errno == 0)
*error_r = "Premature end of input";
else
*error_r = "Stream error";
return;
}
if (ret < 0) {
- if (i_stream_is_eof(conn->conn.input))
+ i_assert(conn->conn.input->eof);
+ if (conn->conn.input->stream_errno == 0)
i_fatal("server: Client stream ended prematurely");
else
i_fatal("server: Streem error: %s",