Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0038569Openbravo ERPA. Platformpublic2018-05-17 08:552018-06-04 11:01
alostale 
alostale 
normalmajorhave not tried
closedfixed 
5
 
3.0PR18Q1.43.0PR18Q1.4 
caristu
Core
No
0038569: can get stuck sending emails
If email server is unresponsive, threads trying to send emails can get indefinitely stuck trying to connect to it.
1. Configure a very slow smtp server
2. Configure Client in Openbravo to make use of it
3. Open a completed Sales Order
4. Click on send email
  -> Check the threads gets stuck while the email server is not responding
As quick win, before a more complete solution is implemented by 0038524, add a hardcoded connection timeout (ie. 10min) so in case it is not possible to connect during that time, an exception will be thrown and the thread will be released.
No tags attached.
blocks defect 0038567 closed alostale can get stuck sending emails 
Issue History
2018-05-17 08:55alostaleTypedefect => backport
2018-05-17 08:55alostaleTarget Version => 3.0PR18Q1.3
2018-05-17 17:23alostaleReview Assigned To => caristu
2018-05-17 17:28alostaleTarget Version3.0PR18Q1.3 => 3.0PR18Q1.4
2018-05-25 09:48hgbotCheckin
2018-05-25 09:48hgbotNote Added: 0104700
2018-05-25 09:48hgbotStatusscheduled => resolved
2018-05-25 09:48hgbotResolutionopen => fixed
2018-05-25 09:48hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR18Q1.4/rev/754797054bfa4c6de19248f3d28b370875fcf55d [^]
2018-06-04 11:01caristuNote Added: 0104909
2018-06-04 11:01caristuStatusresolved => closed
2018-06-04 11:01caristuFixed in Version => 3.0PR18Q1.4
2018-06-04 11:01caristuNote Edited: 0104909bug_revision_view_page.php?bugnote_id=0104909#r17244

Notes
(0104700)
hgbot   
2018-05-25 09:48   
Repository: erp/backports/3.0PR18Q1.4
Changeset: 754797054bfa4c6de19248f3d28b370875fcf55d
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Thu May 17 17:22:21 2018 +0200
URL: http://code.openbravo.com/erp/backports/3.0PR18Q1.4/rev/754797054bfa4c6de19248f3d28b370875fcf55d [^]

fixed bug 38569: can get stuck forever sending emails

  Added a fixed 10 minutes timeout for communications with smtp servers, this
  same timeout is applied to connection creation as well as reading responses
  from server. Note it is not applied to writing operations.

---
M src/org/openbravo/erpCommon/utility/poc/EmailManager.java
---
(0104909)
caristu   
2018-06-04 11:01   
Reviewed