[ 
http://issues.apache.org/jira/browse/JAMES-708?page=comments#action_12451126 ] 
            
Joachim Draeger commented on JAMES-708:
---------------------------------------

What does "Server unexpectedly discounted: Success." mean? ;-)

Okay this part with the watchdog and the handler reset etc is tough. 
It will deserve an entire code review. It is pretty much copy&paste from other 
components (POP3/SMTP) and James has changed here a lot since the imap-dev 
branch was disconnected.
I did only hacking here to get it to work.
ImapServer extends AbstractJamesService but ImapHandler is not extending 
AbstractJamesHandler. 
AFAIK the most functionality is now in the abstract classes. So the best might 
be do do a rewrite of ImapServer and clean up ImapHandler. 


> ImapHandler - unreachable code reached
> --------------------------------------
>
>                 Key: JAMES-708
>                 URL: http://issues.apache.org/jira/browse/JAMES-708
>             Project: James
>          Issue Type: Bug
>          Components: IMAPServer
>    Affects Versions: Trunk
>            Reporter: Robert Burrell Donkin
>
> Once in a while during normal operation, the client pops up a mysterious 
> error message (will post next time it happens)
> When this happens, the log indicate that the code under this code:  
>             theWatchdog.start();
>             while ( handleNextRequest(remoteHost, remoteIP) ) {
>                 if (!handlerIsUp) {
>                     getLogger().debug("Handler has been resetted");
>                     return;
>                 }
>                 theWatchdog.reset();
>             }
>             // TODO is this unreachable code because of !handlerIsUp -> 
> return?
>             getLogger().warn("Stopping watchdog after handling last request");
>             theWatchdog.stop();
>             
> is reached contrary to the TODO
> (Will add more logs and information)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Reply via email to