does.
--HG--
branch : HEAD
errno = input->stream_errno;
if (errno == 0) {
/* EOF */
- if (input->eof) {
+ if (input->disconnected) {
/* too early */
mail_storage_set_error(storage,
"Unexpected EOF");
if (ret == 0) {
/* EOF */
if (!fstream->file)
- stream->istream.eof = TRUE;
+ stream->istream.disconnected = TRUE;
return -1;
}
if (ret < 0) {
if (errno == ECONNRESET || errno == ETIMEDOUT) {
/* treat as disconnection */
- stream->istream.eof = TRUE;
+ stream->istream.disconnected = TRUE;
return -1;
}
if (stream->skip == 0)
return -2;
}
- stream->istream.eof = lstream->input->eof;
+ stream->istream.disconnected = lstream->input->disconnected;
stream->pos -= stream->skip;
stream->skip = 0;
if (stream->closed)
return -1;
- stream->eof = FALSE;
+ stream->disconnected = FALSE;
return _stream->read(_stream);
}
if (stream->closed)
return;
- stream->eof = FALSE;
+ stream->disconnected = FALSE;
_stream->seek(_stream, v_offset);
}
int stream_errno;
unsigned int mmaped:1; /* be careful when copying data */
unsigned int closed:1;
- unsigned int eof:1;
+ unsigned int disconnected:1;
struct _istream *real_stream;
};