Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.10.2
-
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