Re: Indy10: TIdPOP3Server and large messages

Giganews Newsgroups
Subject: Re: Indy10: TIdPOP3Server and large messages
Posted by:  Christian Tiberg (ctibe…@home.se)
Date: Tue, 14 Dec 2004

Hmmm... I've looked inside Indy10 somewhat, and found something strange...
It always uses a write buffer when sending the response.. Isn't that what's
taking so much time? Is there any way to make Indy *not* use write
buffering, except changing the source code?

"Christian Tiberg" <ctibe…@home.se> skrev i meddelandet
news:91F783B7EAB7E240ctibe…@home.se...
> Hello!
>
> We've got problems with getting large mails from TIdPOP3Server into
Outlook.
> It just trundles for a while, and then gets a 'Time out'. The mail in
> question is 10Mb+.
>
> In the POP3RETR method we do the following:
>
>  MsgS := TMessageStream.Create(pth + UIDL + '.msg', fmOpenRead);
>  ASender.Response.LoadFromStream(MsgS);
>  MsgS.Free;
>
> The TMessageStream is a simple class, that just omits the ending line with
a
> period added by the Message.SaveToFile method.
>
> Does anyone have an idea for solving this?
>
> Best regards,
>  Christian Tiberg, CommSoft

Replies

In response to

Indy10: TIdPOP3Server and large messages posted by Christian Tiberg on Tue, 14 Dec 2004