On Wed, Apr 23, 2014 at 1:44 PM, A.L.E.C <[email protected]> wrote:
> On 04/23/2014 01:30 PM, Thomas Bruederli wrote:
>> Small correction about this: you can cancel a running search query by
>> resetting the search (click the x icon on the right side in the search
>> box). This will properly abort the HTTP request and restore the
>> previous listing.
>
> This however does not abort the searching on server. I'm not sure we
> could use connection_aborted() to at least break the loop over folders.
>
> http://php.net/manual/en/function.connection-aborted.php

Interesting point. Actually PHP should already abort the process
unless ignore_user_abort is set. Strangely, when an XMLHTTPRequest is
aborted, connection_aborted() still returns false. Either the browser
doesn't actually close the connection or the disconnect is not
forwarded to PHP. This needs further investigation... but it seems
like we're not the only ones experiencing this:
http://stackoverflow.com/questions/16785472/php-apache-doesnt-stop-on-xhr-abort

~Thomas
_______________________________________________
Roundcube Development discussion mailing list
[email protected]
http://lists.roundcube.net/mailman/listinfo/dev

Reply via email to