Results 1 to 4 of 4

Thread: Ice::DatagramLimitException: protocol error

  1. #1
    poseidonli is offline Registered User
    Name: Haifnng lee
    Organization: Wuhan University
    Project: communications between distributing services
    Join Date
    Oct 2008
    Posts
    4

    Ice::DatagramLimitException: protocol error

    Hi all.
    I meet error in ICE.
    The detail information is:"Subscriber: topoc publish failed: UdpTransceiver.cpp:123: Ice:atagramLimitException: protocol error: maximum datagram paylaod size exceeded."

    Environment:
    OS: windows xp sp2
    ICE 3.2.1

    There are one publisher used java with eclipse 3.5, and two subscribers, one subscribers we called SJ, used java with eclipse 3.4 and the other we called SC used cpp. Now, when the published message with byte[] type surpass 8k, the SC can not receive it and show the DatagramLimitException mentioned above, but the SJ can received without no exception. what's more, the SC connections be closed and can not receive any message published by this publisher(but can receive message by other publisher) .

    Could this be solved by revise some configure files?

    Any suggestions will be appreciated. Thanks a lots!

    yours lee

  2. #2
    dwayne's Avatar
    dwayne is offline ZeroC Staff
    Name: Dwayne Boone
    Organization: ZeroC, Inc.
    Project: Internet Communications Engine
    Join Date
    Jan 2005
    Location
    St. John's, Newfoundland
    Posts
    397
    Please see the faq, specifically the second last paragraph.
    Dwayne Boone

  3. #3
    poseidonli is offline Registered User
    Name: Haifnng lee
    Organization: Wuhan University
    Project: communications between distributing services
    Join Date
    Oct 2008
    Posts
    4
    Thanks for your reply.

    In fact, I hava set the Ice.MessageSizeMax in the start parameter list to a very big value.

    But still not work. Is this limited by OS? such as windows?

    I have solved this by another way.

    Thanks a lot.

  4. #4
    dwayne's Avatar
    dwayne is offline ZeroC Staff
    Name: Dwayne Boone
    Organization: ZeroC, Inc.
    Project: Internet Communications Engine
    Join Date
    Jan 2005
    Location
    St. John's, Newfoundland
    Posts
    397
    It is not Ice.MessageSizeMax that you need to set, it is Ice.UDP.SndSize and Ice.UDP.RcvSize.

    For UDP messages, Ice uses two additional properties, Ice.UDP.SndSize and Ice.UDP.RcvSize. (Note that the value of these properties is in bytes, not kilobytes.) These properties determine the maximum size for the sending and receipt of UDP messages. The default value depends on your operating system. (Typical defaults are 64kB on Windows, and 8kB on Linux.) The maximum sensible value for these properties is 65535 (64kB). You can set them to larger values, but doing so merely increases the size of the kernel buffers and does not affect the hard limit of 65507 bytes for the payload of a UDP packet. (It follows that, for UDP, the maximum Ice message size, including protocol overhead, is 65507 bytes because that is the limit imposed by UDP.) If you set Ice.MessageSizeMax in addition to the UDP send/receive size, the smaller of the property settings applies.
    Dwayne Boone

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. ICE - Protocol buffers
    By Faiz.Usmani in forum Help Center
    Replies: 3
    Last Post: 08-04-2008, 09:08 AM
  2. can Ice support SIP protocol as a plugin now?
    By leya in forum Help Center
    Replies: 1
    Last Post: 03-20-2008, 06:27 AM
  3. ICE Protocol - Questions ...
    By Ama in forum Help Center
    Replies: 1
    Last Post: 07-16-2006, 05:19 AM
  4. Ice Protocol documentation buglet
    By vukicevic in forum Comments
    Replies: 4
    Last Post: 08-21-2003, 12:08 AM

Posting Permissions

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