I'm not sure whether lengthening the timeout would help all that much
(although I agree that 100 ms seems unnecessarily short).

Are you responding to cancel() messages in the scope? (The shell sends a
cancel for each outstanding request before it fires the next one.)

But, even with a 300 ms timeout, you still face the same problem. All it
takes is a slow typist.

You could implement a longer timeout yourself inside the scope. When you
get the run() call, wait a while before actually firing the request; if
you get a cancel(), while that timer is still active, don't send the
request. (Don't add any delay to search(); doing so will cause the
request to time out for the shell.)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1394455

Title:
  100ms timeout for query submission too brief

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unity-scopes-api/+bug/1394455/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to