| Summary: | Search: client side should handle time out when requesting search. | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | libing wang <libingw> |
| Component: | Client | Assignee: | libing wang <libingw> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | ken_walker, mamacdon, simon_kaegi |
| Version: | 3.0 | Flags: | mamacdon:
review+
simon_kaegi: review+ |
| Target Milestone: | 3.0 RC3 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
libing wang
To test, I was able to set the timeout as 1000 ms and reproduce the issue. I think we should fix this for RC3. The real timeout is 15000 ms. This should be good enough for most of the cases. But if timeout really happens we can pop up a message saying "Search response from the server is time out. Please try again later". "The response from the server timed out. Try your search again" Pushed the fix into remote branch Bug411187. http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=4aec64f3280d4cc8e25f9bc9fb974550a148b9d7 To test, you can temporarily change the timeout in fileimpl.js, to 1000 ms. Then open the search page and search. You will see the error pops up in the status bar. If you refresh the browser you will see the result because the previous result is cached on the server side and the response takes less than 1000 ms. Line 544 at fileimpl.js to change the timeout. Seems ok. The change is pretty localized. My only real suggestion would be to add a period at the end of the error message, i.e.
> "${0}. Try your search again."
> ^
(In reply to comment #7) > My only real suggestion would be to add a period at the end of the error > message, i.e. > > "${0}. Try your search again." > > ^ Thanks, pushed the second fix in the same remote branch. pushed |