Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 07-13-2005
brian brian is offline
Registered User
 
Name: brian whitney
Organization: boulder research and development
Project: MarketBank
 
Join Date: Oct 2003
Posts: 119
One-way communication buffer overflow?

Hello again,

It has been a while, but that is good. We really love Ice and have been using it successfully for a couple of years.

My question is theorectical. We have been using Ice to pump data from a C++ to Java service. The C++ service is always on Unix; the Java on Unix or Windows. Occasionally, our C++ process will block when sending the data. Although we are now investigating specifics, we were wondering what happens if when using one-way protocol, the local transport, as described in your manual below, fills its buffer -- i.e. will this cause the client to block until the buffer has more room?

"For a oneway invocation, the client-side run time hands
the invocation to the local transport, and the invocation completes on the client
side as soon as the local transport has buffered the invocation. The actual invocation
is then sent asynchronously by the operating system."

Thanks for any help,

Brian
Reply With Quote
  #2 (permalink)  
Old 07-14-2005
bernard's Avatar
bernard bernard is offline
ZeroC Staff
 
Name: Bernard Normier
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Palm Beach Gardens, FL
Posts: 813
Hi Brian,

This is correct, a client sending oneways can block when its TCP/IP buffer becomes full. See the FAQ in Connections 2 .

This typically occurs when the server can't keep up with the client: all its threads are busy and it does not pick up quickly enough messages from the client.

Cheers,
Bernard
Reply With Quote
  #3 (permalink)  
Old 07-14-2005
brian brian is offline
Registered User
 
Name: brian whitney
Organization: boulder research and development
Project: MarketBank
 
Join Date: Oct 2003
Posts: 119
Thanks for the quick reply Bernard.

I know that Ice provides the MaxMessageSize property, but is there an interface for setting the underlying TCP/IP socket buffer size -- e.g if we wanted to increase it?

Do you know the default sizes for Unix and Windows?

What are the implications of increasing this buffer size?

Feel free to direct me to other sources of info as you did below.

Thanks again,

Brian

Quote:
Originally Posted by bernard
Hi Brian,

This is correct, a client sending oneways can block when its TCP/IP buffer becomes full. See the FAQ in Connections 2 .

This typically occurs when the server can't keep up with the client: all its threads are busy and it does not pick up quickly enough messages from the client.

Cheers,
Bernard
Reply With Quote
  #4 (permalink)  
Old 07-14-2005
bernard's Avatar
bernard bernard is offline
ZeroC Staff
 
Name: Bernard Normier
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Palm Beach Gardens, FL
Posts: 813
Hi Brian,

Ice does not provide any configuration variable to set the size of its TCP/IP buffers. But it would make sense to add one.

We use 64K on Windows, the default on other platforms.

Cheers,
Bernard
Reply With Quote
  #5 (permalink)  
Old 07-15-2005
brian brian is offline
Registered User
 
Name: brian whitney
Organization: boulder research and development
Project: MarketBank
 
Join Date: Oct 2003
Posts: 119
Thanks for your help, Bernard. Appreciate it.

Brian
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
Communication problems between Glacier2 router & PermissionVerifier & SessionManager Nis Baggesen Help Center 22 02-07-2006 09:12 AM
ICE1.3 Tcp Communication Problem chaosun Help Center 13 12-03-2004 11:20 PM
Visual Basic two-way communication with Java msciarra Help Center 3 12-01-2004 03:33 PM
single stream for two-way communication? vukicevic Help Center 2 05-19-2003 04:17 PM


All times are GMT -4. The time now is 06:59 PM.


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.