Issue 118814 - Over-long timeout can make XMailServer appear to hang OOo
Summary: Over-long timeout can make XMailServer appear to hang OOo
Status: CLOSED FIXED
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: PC Windows XP
: P5 (lowest) Minor
Target Milestone: ---
Assignee: Ariel Constenla-Haile
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-18 16:10 UTC by DonJaime
Modified: 2017-05-20 09:32 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Contains a macro that attempts to connect to a mail server on the wrong port (10.57 KB, application/vnd.oasis.opendocument.spreadsheet)
2012-01-18 16:10 UTC, DonJaime
no flags Details
Text document with test macro (19.63 KB, application/vnd.oasis.opendocument.text)
2012-01-25 11:30 UTC, Ariel Constenla-Haile
no flags Details
mailmerge.py modified version (15.12 KB, text/x-python)
2012-01-25 11:37 UTC, Ariel Constenla-Haile
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description DonJaime 2012-01-18 16:10:38 UTC
Created attachment 77146 [details]
Contains a macro that attempts to connect to a mail server on the wrong port

When trying to connect to an unresponsive mail server, or when trying to connect to the wrong port, XMailServer can take an overly long time to time out and throw an error, giving the impression that OOo has hanged.

The time that elapses before the error appears seems to depend on the server address, unless that's just coincidence. The address used in the sample file is the one that took the longest (several minutes). (The port number used is a typo of my mail client's settings.)
Comment 1 Ariel Constenla-Haile 2012-01-25 11:30:56 UTC
Created attachment 77167 [details]
Text document with test macro
Comment 2 Ariel Constenla-Haile 2012-01-25 11:36:17 UTC
Revision 1235678 - adap mailmerge.py
Revision 1235679 - adap API doc

The com::sun::star::uno::XCurrentContext required in XMailService::connect() can now have an optional "Timeout" value:

Timeout of type 'long' (Optional). Specifies a timeout in seconds for blocking operations, like the connection attempt.
Comment 3 Ariel Constenla-Haile 2012-01-25 11:37:55 UTC
Created attachment 77168 [details]
mailmerge.py modified version