develop: Update upgrade check handling in OMERO.web#2177
develop: Update upgrade check handling in OMERO.web#2177joshmoore merged 3 commits intoome:developfrom
Conversation
Python socket timeouts are specified in seconds as floating point. This commit sets the default timeout to a more reasonable 3 seconds, allows the specification of a floating point timeout value, removes the assumption that the timeout is specified in milliseconds and documents all of the aforementioned.
This commit adds configurability to the upgrade check URL via the
OMERO.web configuration mechanism. Upgrade checks in OMERO.web can now
be disabled by running:
bin/omero config set omero.web.upgrades_url ''
|
From default timeout from but then again Is there some server that is routable but drops packets without rejecting them or something, so I can get a better hang? |
|
Still to update copyrights in headers to include 2014. |
|
The headers have been updated by other commits in both |
|
I don't seem to be able to change the timeout. For instance, (Unless there is coincidentally a three-second timeout on trying to find routes to hosts?) |
|
Ha ha, yes, actually there is a coincidence, now can continue testing: |
|
I'm happy to change the copyright headers, just not on this branch. It'll end up being more work to change them, manage all the rebasing and conflicts than the actual code changes themselves. Wow that's annoying with respect to the timeouts! :) |
|
That's all fine, thank you: good to merge. |
|
@mtbc: No issues similar to @will-moore on #2176 with respect to disabling the check all together? |
|
No, it's still in my xterm scrollback fortunately: Setting the time-out to 0 works fine too. |
|
Great. 👍 I'm going to try and do something clever on the copyright years, if it works, great otherwise I'll open a series of other PRs to update them. |
|
Ah, I didn't try with |
|
You'll need to try with |
|
Copyright years are handled elsewhere in the web with #2149 |
|
Yup, all seems good. (-: |
|
See merge comment under gh-2175. |
develop: Update upgrade check handling in OMERO.web
This pull requests updates the base socket timeout semantics of the OMERO.py upgrade check and allows for upgrade check configurability in OMERO.web. OMERO tickets addressed include:
#12097(https://trac.openmicroscopy.org.uk/ome/ticket/12097)To test timeouts, you will need a merge build with the changes included. Running under
bin/omero shell:134.36.64.142is a University of Dundee firewalled IP address that can be used for internal or external testing. Default timeouts should be in the neighbourhood of 3 seconds. Example output:If needed the timeout can be adjusted and checked (example is a timeout of 10 seconds) by using:
OMERO.web upgrade check configurability can also be tested with a merge build. Running under
DJANGO_SETTINGS_MODULE=settings PYTHONPATH=$PYTHONPATH:lib/python/omeroweb bin/omero shell:Disabled upgrade checks should return instantly. Example output:
The source branch for this pull request has been based atop the
v.4.4.0tag so that it can be merged cleanly into:dev_4_4(dev_4_4: Update upgrade check handling in OMERO.web #2175)dev_5_0(dev_5_0: Update upgrade check handling in OMERO.web #2176)develop(develop: Update upgrade check handling in OMERO.web #2177)--rebased-from #2176