Apache OpenOffice (AOO) Bugzilla – Issue 118814
Over-long timeout can make XMailServer appear to hang OOo
Last modified: 2017-05-20 09:32:16 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.)
Created attachment 77167 [details] Text document with test macro
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.
Created attachment 77168 [details] mailmerge.py modified version