Results 1 to 2 of 2

Thread: Creating many adapters in WindowsXP (Ice 3.3.0)

  1. #1
    mcastro is offline Registered User
    Name: Manuel Castro
    Organization: Indisys
    Project: Natural Language Processing
    Join Date
    Feb 2010
    Posts
    1

    Creating many adapters in WindowsXP (Ice 3.3.0)

    Hi,

    We have a problem trying to create several adapters in a C++ software using Windows XP (invoking createObjectAdapterWithEndpoints several times, with diferent parameters). Creating more than 150 adapters, we catch an Ice::SocketException, which shows that we can't use more sockets. This problem didn't happen with older versions of Ice (3.2.1 and before), apparently starting with Ice 3.3.0 version.

    Same code using Ice 3.3.0 in Ubuntu 8.04 works perfectly.

    We have read about FD_SETSIZE and tried to redefine it without success. Could you help us please?

    Thanks in advance.

  2. #2
    mes's Avatar
    mes
    mes is offline ZeroC Staff
    Name: Mark Spruiell
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Feb 2003
    Location
    California
    Posts
    1,441
    Hi Manuel,

    Welcome to the forum!

    I'm pretty sure this is related to the "backlog" value that Ice uses for server sockets. In Ice 3.2.1 and earlier, we always used a value of 5 for this setting. We made the backlog configurable in Ice 3.3.0, with the default value using SOMAXCONN (if defined) or 511 otherwise. SOMAXCONN is defined on Windows, but it's not easy to discover exactly what value Windows uses in this case.

    I was able to reproduce the issue you described on Windows XP, but not on Windows 7.

    You can try running your server with Ice.TCP.Backlog=5 to see if it resolves the problem. Note that if many clients connect simultaneously to the same adapter, your clients might experience rejected connections if the backlog is set too low.

    Lastly, I have to ask: Is it really necessary to create so many object adapters?

    Best regards,
    Mark

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 3
    Last Post: 10-03-2008, 01:46 AM
  2. Replies: 10
    Last Post: 08-22-2008, 11:05 AM
  3. Replies: 2
    Last Post: 06-30-2008, 10:11 AM
  4. Multiple Adapters
    By Jennie in forum Help Center
    Replies: 1
    Last Post: 01-25-2005, 05:04 PM
  5. Help on creating services w/ ICE
    By stephan in forum Help Center
    Replies: 6
    Last Post: 02-02-2004, 04:14 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •