[jboss-jira] [JBoss JIRA] (JGRP-2449) TCP/UDP: buffer size of 0 will not set buffer sizes

Diego Lovison (Jira) issues at jboss.org
Thu Feb 6 05:35:00 EST 2020


    [ https://issues.redhat.com/browse/JGRP-2449?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13965158#comment-13965158 ] 

Diego Lovison commented on JGRP-2449:
-------------------------------------

[~belaban] in https://docs.oracle.com/javase/8/docs/api/java/net/Socket.html#setSendBufferSize-int- we have 

Parameters:
size - the size to which to set the send buffer size. This value must be greater than 0.

What do you think about -1 for JGroups? I know that 0 and -1 are invalid values but -1 seems like JGroups specific parameter value.

> TCP/UDP: buffer size of 0 will not set buffer sizes
> ---------------------------------------------------
>
>                 Key: JGRP-2449
>                 URL: https://issues.redhat.com/browse/JGRP-2449
>             Project: JGroups
>          Issue Type: Task
>            Reporter: Bela Ban
>            Assignee: Bela Ban
>            Priority: Minor
>             Fix For: 5.0, 4.2.0
>
>
> If we set (e.g.) {{mcast_recv_buf_size}} to {{0}}, then we won't set the buffer size, but will use whatever the OS default is.



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the jboss-jira mailing list