Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Task #8550 (closed)

Opened 12 years ago

Closed 12 years ago

Webclient keepAlive ping

Reported by: wmoore Owned by: wmoore
Priority: major Milestone: OMERO-4.4
Component: Web Version: n.a.
Keywords: testing,phase1 Cc: atarkowska, cxallan
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: 0.0d
Sprint: 2012-05-08 (14)

Description

Need a Javascript 'ping' to keep the session alive while the web client is open.

E.g. ping every minute / 30 secs?

This should mean that timing out of session is rare.

Change History (7)

comment:1 Changed 12 years ago by wmoore

  • Status changed from new to accepted

comment:2 Changed 12 years ago by wmoore

  • Resolution set to fixed
  • Status changed from accepted to closed

Fixed with commit https://github.com/aleksandra-tarkowska/openmicroscopy/commit/2820b8601fb4dbca2cfebfd862f783cb1f76570d

By default, we ping the server every minute. This can be configured via

$ bin/omero config set omero.web.ping_interval 10000   # millisecs

OR to turn it off

$ bin/omero config set omero.web.ping_interval 0

The ping javascript is included in the base templates of webadmin and webclient. Can be added elsewhere with 'include'.

Closing...

comment:3 Changed 12 years ago by Will Moore <will@…>

  • Remaining Time set to 0

(In [2820b8601fb4dbca2cfebfd862f783cb1f76570d/ome.git] on branch develop) Web keepalive ping. Closes #8550

comment:4 Changed 12 years ago by jmoore

  • Remaining Time changed from 0 to 0.1
  • Resolution fixed deleted
  • Status changed from closed to reopened

Once a minute is too often. Also, is this done once per connection? (Sorry for piping up so late)

comment:5 Changed 12 years ago by wmoore

A ping every minute is what Insight does. You can config it to be different (see above).
All the ping does is retrieve a connection in the same way we do for every other web call, using the @login_required decorator.

comment:6 Changed 12 years ago by atarkowska

  • Keywords testing phase1 added

comment:7 Changed 12 years ago by wmoore

  • Remaining Time changed from 0.1 to 0
  • Resolution set to wontfix
  • Status changed from reopened to closed

After discussion in web meeting on Monday, decided that we are happy with current behavior: ping once a minute but don't do anything if connection fails (no redirect etc).

Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.531698 sec.)

We're Hiring!