Uploaded image for project: 'JBoss Remoting (3+)'
  1. JBoss Remoting (3+)
  2. REM3-196

Read buffer size is used as default for incoming and outgoing connections

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • 3.3.3.Final, 4.0.5.Beta1
    • None

      As per subject. Since https://github.com/baranowb/jboss-remoting/commit/8fa1272bcecfb4a0ac0885c3a88e3f4061bcfb4a RemoteConnectionProvider has 'private final int defaultBufferSize;' field. It is initialized in constructor as follows:

      defaultBufferSize = optionMap.get(RemotingOptions.RECEIVE_BUFFER_SIZE, RemotingOptions.DEFAULT_RECEIVE_BUFFER_SIZE);
      

      There are few pitfalls with this approach:
      1. (?)There is no contract between constructor, accept and connect operations/methods. Hence confusion - what can be passed/accepted in OptionMap to constructor, accept or connect. Since said patch, it would seem that there is no distinction.
      2. RECEIVE_BUFFER_SIZE is used for connect and accept and OptionMap passed to those operations/methods is ignored( to certain degree)

              rhn-cservice-bbaranow Bartosz Baranowski
              rhn-cservice-bbaranow Bartosz Baranowski
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: