Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-6464

connectionTimeout property is ignored by JavaMail

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.10.2
    • 2.10.5, 2.11.1, 2.12.0
    • camel-mail
    • None
    • mail-1.4.5.jar

    • Unknown

    Description

      JavaMail ignores the timeout values set via the connectionTimeout property.

      • Within MailConfiguration::createJavaMailProperties the mail.<protocol>.timeout and mail.<protocol>.connectionTimeout parameters are set as long values
      • In com.sun.mail.util.PropUtil::getInt (line 141) the property is ignored since it is a long value

      Changing the type of connectionTimeout from long to int would be the cleanest solution - another suggestion would be to downcast the connectionTimeout in MailConfiguration::createJavaMailProperties

      Attachments

        Activity

          People

            muellerc Christian Müller
            marcozapletal Marco Zapletal
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: