Uploaded image for project: 'Skara'
  1. Skara
  2. SKARA-125

The SMTP client can wait indefinitely

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: libraries
    • Labels:
      None

      Description

      If the SMTP client gets an unexpected response from the server, it may get stuck waiting indefinitely. For example:

      "pool-1-thread-3" #376 prio=5 os_prio=0 cpu=116520.64ms elapsed=67572.30s tid=0x00007f763c012000 nid=0x18f sleeping [0x00007f753afee000]
         java.lang.Thread.State: TIMED_WAITING (sleeping)
      at java.lang.Thread.sleep(java.base@12.0.2/Native Method)
      at org.openjdk.skara.email.SMTPSession.waitForPattern(org.openjdk.skara.email/SMTPSession.java:44)
      at org.openjdk.skara.email.SMTPSession.sendCommand(org.openjdk.skara.email/SMTPSession.java:82)
      at org.openjdk.skara.email.SMTP.send(org.openjdk.skara.email/SMTP.java:58)
      at org.openjdk.skara.mailinglist.mailman.MailmanServer.sendMessage(org.openjdk.skara.mailinglist/MailmanServer.java:51)
      at org.openjdk.skara.mailinglist.mailman.MailmanList.post(org.openjdk.skara.mailinglist/MailmanList.java:56)
      at org.openjdk.skara.bots.notify.MailingListUpdater.sendCombinedCommits(org.openjdk.skara.bots.notify/MailingListUpdater.java:186)
      at org.openjdk.skara.bots.notify.MailingListUpdater.handleCommits(org.openjdk.skara.bots.notify/MailingListUpdater.java:199)
      at org.openjdk.skara.bots.notify.JNotifyBot.handleBranch(org.openjdk.skara.bots.notify/JNotifyBot.java:88)
      at org.openjdk.skara.bots.notify.JNotifyBot.run(org.openjdk.skara.bots.notify/JNotifyBot.java:179)
      at org.openjdk.skara.bot.BotRunner$RunnableWorkItem.run(org.openjdk.skara.bot/BotRunner.java:78)
      at java.util.concurrent.Executors$RunnableAdapter.call(java.base@12.0.2/Executors.java:515)
      at java.util.concurrent.FutureTask.run(java.base@12.0.2/FutureTask.java:264)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(java.base@12.0.2/ScheduledThreadPoolExecutor.java:304)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(java.base@12.0.2/ThreadPoolExecutor.java:1128)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(java.base@12.0.2/ThreadPoolExecutor.java:628)
      at java.lang.Thread.run(java.base@12.0.2/Thread.java:835)

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            rwestberg Robin Westberg (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: