You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Norman Maurer (JIRA)" <se...@james.apache.org> on 2011/04/06 13:40:06 UTC

[jira] [Created] (IMAP-277) ImapResponseWriter.write(..) should only be called one time per request

ImapResponseWriter.write(..) should only be called one time per request
-----------------------------------------------------------------------

                 Key: IMAP-277
                 URL: https://issues.apache.org/jira/browse/IMAP-277
             Project: JAMES Imap
          Issue Type: Improvement
            Reporter: Norman Maurer
            Assignee: Norman Maurer


At the moment we call ImapResponseWrite.write(..) many times for one response (writing parts of it). This can lead to problems with nio frameworks and can be a cause of mixed up responses. Beside this this is a big performance killer as such syscalls can be very expensive.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] [Resolved] (IMAP-277) ImapResponseWriter.write(..) should only be called one time per request

Posted by "Norman Maurer (JIRA)" <se...@james.apache.org>.
     [ https://issues.apache.org/jira/browse/IMAP-277?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Norman Maurer resolved IMAP-277.
--------------------------------

    Resolution: Fixed

done.. And for your question the user expierience will be the same as before

> ImapResponseWriter.write(..) should only be called one time per request
> -----------------------------------------------------------------------
>
>                 Key: IMAP-277
>                 URL: https://issues.apache.org/jira/browse/IMAP-277
>             Project: JAMES Imap
>          Issue Type: Improvement
>            Reporter: Norman Maurer
>            Assignee: Norman Maurer
>
> At the moment we call ImapResponseWrite.write(..) many times for one response (writing parts of it). This can lead to problems with nio frameworks and can be a cause of mixed up responses. Beside this this is a big performance killer as such syscalls can be very expensive.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] [Commented] (IMAP-277) ImapResponseWriter.write(..) should only be called one time per request

Posted by "Eric Charles (JIRA)" <se...@james.apache.org>.
    [ https://issues.apache.org/jira/browse/IMAP-277?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13017349#comment-13017349 ] 

Eric Charles commented on IMAP-277:
-----------------------------------

I sometimes need to search in my mail client for mail containing "string" in the body.
For large folders, the search takes time (more than 1 second), but I see the mails appearing progressively (as a user, I don't fell there's a problem, because server gives responses progressively).
With this patch, won't the server need the whole answer on the search, to write it back, having as consequence a long wait time for the user.
Maybe not the case, just asking...
Tks,
Eric


> ImapResponseWriter.write(..) should only be called one time per request
> -----------------------------------------------------------------------
>
>                 Key: IMAP-277
>                 URL: https://issues.apache.org/jira/browse/IMAP-277
>             Project: JAMES Imap
>          Issue Type: Improvement
>            Reporter: Norman Maurer
>            Assignee: Norman Maurer
>
> At the moment we call ImapResponseWrite.write(..) many times for one response (writing parts of it). This can lead to problems with nio frameworks and can be a cause of mixed up responses. Beside this this is a big performance killer as such syscalls can be very expensive.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org