Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Lite 7

 AfterLogic Forum : AfterLogic WebMail Lite 7
Subject Topic: IMAP search timeout Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
sloggy338989
Newbie
Newbie


Joined: 24 July 2017
Online Status: Offline
Posts: 3
Posted: 24 July 2017 at 9:10am | IP Logged Quote sloggy338989

When I do a search I get a "Data transfer has failed, probably due to server error. Please contact system administrator." error after about 45 seconds.
The problems seems to be that my server (hmail) takes 60 seconds to reply with search results. I can't seem to find a way in hmail to make it quicker, is it possible to mail afterlogic's timeout longer?

Version 7.7.3

I reviewed
https://afterlogic.com/docs/webmail-lite/configuring-webmail/advanced-configuration-via-config-php-file
and added "socket.get-timeout" and "socket.connect-timeout" to data/settings/config.php and restarted the site. That did not change the issue.


Back to Top View sloggy338989's Profile Search for other posts by sloggy338989
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6038
Posted: 25 July 2017 at 2:24am | IP Logged Quote Igor

That message usually means there was some error thrown by PHP/webserver and it interrupted the data exchange between browser and server. To find out what it was, you can examine webserver/PHP logs; alternatively, open console in web browser (usually with F12 key) and you should be able to find the error message there once the issue occurs.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
sloggy338989
Newbie
Newbie


Joined: 24 July 2017
Online Status: Offline
Posts: 3
Posted: 26 July 2017 at 1:42pm | IP Logged Quote sloggy338989

I don't see any obvious errors in the console. using Chrome, I see the ?/Ajax/ call results in "canceled"

Under form data I see:
Action:MessagesGetList
Folder:INBOX
Offset:0
Limit:50
Search:<Search term>
Filters:
UseThreads:0
InboxUidnext:59872
AccountID:1
Token:<sometoken>

I see that there's a "limit:50" and 50 seconds is how long it takes for the message to timeout under "network:timing". Is that a coincidence? Is there somewhere else I should be looking?


Back to Top View sloggy338989's Profile Search for other posts by sloggy338989
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6038
Posted: 27 July 2017 at 12:41am | IP Logged Quote Igor

Oh that's right, timeout value is set to 50 seconds by default, and it's possible to increase that value, see static/js/app.js file:

Code:
timeout: oParameters.Action === 'MessagesGetBodies' ? 100000 : 50000


You can increase the 2nd number there and set it to, say, 300000 which corresponds to 5 minutes.

Note that app.js file isn't used by default - its minified version app.min.js is used. To change that, add the following item to the array defined in data/settings/config.php file:

Code:
'labs.use-app-min-js' => false,


Hope this helps.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
sloggy338989
Newbie
Newbie


Joined: 24 July 2017
Online Status: Offline
Posts: 3
Posted: 27 July 2017 at 6:33am | IP Logged Quote sloggy338989

YES! that worked perfectly.. Well as perfectly as a 60 second wait to get search results...
Thanks.
Back to Top View sloggy338989's Profile Search for other posts by sloggy338989
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide