Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 02-09-2005
andhow andhow is offline
Registered User
 
 
Join Date: Jan 2005
Posts: 16
can tcp oneway failure go unnoticted?

I see in the documentation that oneway invocations only wait on the local tcp/ip stack and do not return socket failures. My question is: can a tcp oneway invocation on a proxy fail due to a SyscallException (or derived), but the proxy recovers, and proceeds without problem. My situation is that I want to be able to make non-blocking reliable invocations. Its ok to lose an invocation, but only if I know no subsequent reliable invocations will succeed. Is tcp oneway safe for this use or should I stick with two-way?
Reply With Quote
  #2 (permalink)  
Old 02-10-2005
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,534
A oneway invocation will raise an exception if the oneway request can't be sent because the connection can't be established. For example, if you client invokes on your server with oneway requests and at some point your server dies, the connection will eventually get closed and your client will try again to establish the connection. If the connection can't be establish again, you'll get an exception from the oneway invocation.

You can easily try this with the demo/Ice/hello demo where you can start the server and client and send oneway requests. If you kill the server while you send oneway requests, you'll see that the client reports the failure when trying to send a oneway request.

Benoit.
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
assertion failure bravekillla Help Center 1 12-27-2005 05:34 PM
Delay of OneWay-Calls wgwolf Help Center 1 11-10-2005 09:24 PM
Pre-Build Failure Wayetender Help Center 8 08-07-2004 08:06 PM
OneWay Method invokation NOT returning galbe Bug Reports 7 10-30-2003 10:07 AM
Making C++ throughput demo oneway? SteveWampler Help Center 4 09-02-2003 06:14 PM


All times are GMT -4. The time now is 08:24 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.