Go Back   ZeroC Forums > Patches

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 03-20-2006
benoit's Avatar
benoit benoit is offline
ZeroC Staff
 
Name: Benoit Foucher
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Rennes, France
Posts: 1,478
Patch #2 for Glacier2, release 3.0.1

Hi,

Glacier2 has a bug which might cause the destruction of a session to hang. The hang shouldn't affect existing or new sessions but it will cause resources allocated for the session to leak. The hang will also prevent Glacier2 to shutdown properly.

You'll find below a patch that fixes this problem. This patch also includes the previous patch for Glacier2 buffered mode. If your source tree already includes this previous patch, you should either unpack a fresh source distribution or reverse the patch (with patch -R) before to apply this patch.

Note that this patch is not binary compatible and your Glacier2 clients will need to be changed to catch Ice::LocalException when calling the Glacier2::Router::destroySession() method, for example:
Code:
   try
   { 
       router->destroySession()
   }
   catch(const Ice::LocalException&)
   {
        // Expected: Glacier2 closed the connection
   }
Glacier2 now always closes the connection when destroySession is invoked, so getting an exception is expected.

This patch will be included in Ice 3.1.0. As usual, to apply the patch:
Code:
  $ cd Ice-3.0.1
  $ patch -p0 < glacier2.patch2.txt
Cheers,
Benoit.
Attached Files
File Type: txt glacier2.patch2.txt (2.4 KB, 80 views)
Reply With Quote
  #2 (permalink)  
Old 06-02-2006
benoit's Avatar
benoit benoit is offline
ZeroC Staff
 
Name: Benoit Foucher
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Rennes, France
Posts: 1,478
Hi,

Here's a patch that includes the patch above and also includes fixes for the Glacier2 tests and demos.

Cheers,
Benoit.
Attached Files
File Type: txt glacier2.patch2.txt (4.8 KB, 72 views)
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Patch for Ice-E for C++, release 1.1.0 benoit Patches 0 04-19-2006 05:03 AM
Patch #3 for IceGrid, release 3.0.1 benoit Patches 0 03-20-2006 12:17 PM
Patch for Glacier2, release 3.0.1 benoit Patches 5 02-28-2006 11:09 PM
Patch for Ice for C++, release 3.0.1 benoit Patches 2 02-22-2006 09:04 PM
Patch #2 for slice2cs, release 1.5.1 michi Patches 0 10-26-2004 11:11 PM


All times are GMT -4. The time now is 09:56 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.