[jboss-jira] [JBoss JIRA] Commented: (JGRP-718) Transport: limit number of bytes read
Vladimir Blagojevic (JIRA)
jira-events at lists.jboss.org
Thu Sep 11 14:17:21 EDT 2008
[ https://jira.jboss.org/jira/browse/JGRP-718?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12429182#action_12429182 ]
Vladimir Blagojevic commented on JGRP-718:
------------------------------------------
Message is read from stream passed to a Message object. I assume discard_messages_larger_than flag is a property of TP? How can we use discard_messages_larger_than flag from within a Message object? Maybe we can make this flag a JVM property?
> Transport: limit number of bytes read
> -------------------------------------
>
> Key: JGRP-718
> URL: https://jira.jboss.org/jira/browse/JGRP-718
> Project: JGroups
> Issue Type: Feature Request
> Reporter: Bela Ban
> Assignee: Vladimir Blagojevic
> Priority: Minor
> Fix For: 2.7
>
>
> In the transport, each message is prefixed with its length. If, on the receiver side, we receive garbage data (e.g. a random app connects to the same port), then JGroups tries to interpret the first 4 bytes as length, and this might be quite huge (1.6GB in one instance).
> If we know that our packets are never larger than 200'000 bytes, then we can set a flag discard_messages_larger_than="200000". If the flag is 0, no messages will be discarded.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list