I added this a few nights ago so users can download large emails.  This
output stream will notify the scheduler every time 20k has been sent.  For
instance, say you have a user who's on a 28.8kbps line downloading a large
message... without this the POP3 handler will time them out before it could
be received and the next POP3 command sent.

I thought it was working for me but I guess I only tested it on the SMTP
handler side.  Probably some mundane detail. Sorry about this.  :(

Serge Knystautas
Loki Technologies - Unstoppable Websites
http://www.lokitech.com/
----- Original Message -----
From: "Danny Angus" <[EMAIL PROTECTED]>
To: "James Developers List" <[EMAIL PROTECTED]>
Sent: Thursday, November 29, 2001 12:33 PM
Subject: RE: Bug.. or bad configuration..


> Found it this diff show the code I commented out to "fix" it
> I'm not really sure what SchedulerNotifyOutputStream does .. (yet)
>
>
> cvs -z9 diff -u POP3Handler.java
> Index: POP3Handler.java
> ===================================================================
> RCS file:
>
/home/cvs/jakarta-james/src/java/org/apache/james/pop3server/POP3Handler.jav
> a,v
> retrieving revision 1.2
> diff -u -r1.2 POP3Handler.java
> --- POP3Handler.java 2001/11/26 03:27:29 1.2
> +++ POP3Handler.java 2001/11/29 17:11:38
> @@ -401,10 +401,11 @@
>                  MailImpl mc = (MailImpl) userMailbox.elementAt(num);
>                  if (mc != DELETED) {
>                      out.println(OK_RESPONSE + " Message follows");
> -                    SchedulerNotifyOutputStream nouts =
> -                            new SchedulerNotifyOutputStream(outs,
> scheduler,
> -                            this.toString(), lengthReset);
> -                    mc.writeMessageTo(nouts);
> +//                    SchedulerNotifyOutputStream nouts =
> +//                            new SchedulerNotifyOutputStream(outs,
> scheduler,
> +//                            this.toString(), lengthReset);
> +//                    mc.writeMessageTo(nouts);
> +                    mc.writeMessageTo(outs);
>                      out.println();
>                      out.println(".");
>                  } else {



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to