Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-1484

Keep alive "ok hang in there" is never sent on current trunk

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • Trunk
    • None
    • IMAPServer
    • None

    Description

      Step to reproduce:
      1. Configure Outlook 2003 to use default timeout for an account (1 min)
      2. Try to perform some long running task (eg copying 5,1k emails)

      Expected result:
      emails are copied

      Current result:
      outlook reports timeout and never completes operation

      Info: in the past we were sending keep alive info "ok hang in there", right now it's not sent (at least not within a minute).

      Current trunk code (protocols/protocols-imap4/src/main/java/org/apache/james/imapserver/netty/IMAPServer.java):
      pipeline.addLast("idleHandler", new IdleStateHandler(timer, 0, 0, timeout, TIMEOUT_UNIT));

      Suggested fix:
      pipeline.addLast("idleHandler", new IdleStateHandler(timer, 0, 15, timeout, TIMEOUT_UNIT));

      or better yet, make this paremeter configurable.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ihsiak Bartosz Tomasik
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: