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 #2772 (closed)

Opened 14 years ago

Closed 14 years ago

Bug: OMSC.initialize leaks omero.client objects

Reported by: jamoore Owned by: jamoore
Priority: minor Milestone: OMERO-Beta4.2.1
Component: Import Version: n.a.
Keywords: n.a. Cc:
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: 0.0d
Sprint: n.a.

Description

#initialize(String, String, String, int, long, boolean) creates an omero.client and then (if the boolean is false) immediately overwrites it, without cleaning up the other instance:

    	c = new client(server, port);
    	c.setAgent("OMERO.importer");
    	serviceFactory = c.createSession(username, password);
    	
    	if (!isSecure)
    	{
                log.info("Insecure connection requested, falling back");
    		c = c.createClient(false);
    		serviceFactory = c.getSession();
    	}

See: http://lists.openmicroscopy.org.uk/pipermail/ome-users/2010-September/002431.html

Change History (4)

comment:1 Changed 14 years ago by jmoore

  • Type changed from User Story to Task

comment:2 Changed 14 years ago by jmoore

  • Remaining Time set to 0.25

comment:3 Changed 14 years ago by jmoore

  • Owner set to jmoore
  • Status changed from new to assigned

comment:4 Changed 14 years ago by jmoore

  • Remaining Time changed from 0.25 to 0
  • Resolution set to fixed
  • Status changed from assigned to closed

(In [7910]) Fixing dangling clients which close import sessions (See #2804, Fix #2772, #2803)

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.64554 sec.)

We're Hiring!