On 5 April 2016 at 16:27, [email protected] <[email protected]> wrote: > Is there any option to set the max frame size of the java broker? > Appearantly there was an option qpid.broker_frame_size (see > > https://qpid.apache.org/releases/qpid-0.32/java-broker/book/Java-Broker-Appendix-System-Properties.html > ) > but it does not seem to be implemented (anymore?). > > It is no longer implemented because frame size means different things (and has different limits) across different AMQP versions, moreover in general the Broker is advertising capabilities which aren't really sensible for a user to tune. Obviously in this case we have a bug in the Windows C++ client which means you want to artificially limit it.
> Background of my question is: Windows c++ clients via SSL currently only > support maximum frame sizes of 16K (see > https://issues.apache.org/jira/browse/QPID-2410 for more information). > However, the java broker seems to be configured to always send with a frame > size of 64K. I'd like to modify it to send 16K frames. > > I already tried to modify the MAX_FRAME_SIZE value in > src/main/java/org/apache/qpid/transport/ServerDelegate.java but appearantly > this does not have any effect as indicated by this protocol trace of a > client: > > > > So appearantly the client sends with max-frame-size=16384 (as expected) but > the broker still sends with max-frame-size=65535 (despite the changes in > ServerDelegate.java). > > I would appreciate any feedback. > > If you are modifying 6.0.x or trunk code then you will need to modify the constructor for org.apache.qpid.server.protocol.v0_10.ServerConnectionDelegate where you will find the line _maximumFrameSize = Math.min(0xffff, broker.getNetworkBufferSize()); if you change that 0xffff to 16384 then it should work for you. -- Rob > -- > View this message in context: > http://qpid.2158936.n2.nabble.com/Max-Frame-Size-for-Java-Broker-tp7641393.html > Sent from the Apache Qpid users mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
