Affected apps
user_external
Expected behaviour
When using user_external app, have only 1 connection to each imap server configured and keep the info (success or failure) for after.
Actual behaviour
11 consecutive imap_open calls are made when login in the app + 2 others a bit later.
That's a lot.
When configuring several Imap server (I guess it's the same if it's an Imap and a ftp backend), and the person who tries to connect is from the second imap server, we loose something like 13 x 2 sec (each attempt on the first imap server) + 13 x 0,something sec (not a lot, but x 13 makes it bigger) for the login process.. That's quite huge.
But, after that, when navigating in the interface, no more imap_open are called (the expected behaviour).
This should be applied as soon as the first imap_open return true.
Steps to reproduce
- Configure 2 Imap backends servers
- try to connect with an address from the second server
- wait
Server configuration
Debian Jessie 8.8
Web server:
nginx/1.10.3
Database:
mariadb-server 10.0.30-0+deb8u2
PHP version:
PHP 7.0.18-1~dotdeb+8.1 (cli) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache v7.0.18-1~dotdeb+8.1, Copyright (c) 1999-2017, by Zend Technologies
ownCloud version:
9.1.2