You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by Gordon Sim <gs...@redhat.com> on 2016/04/01 10:46:33 UTC

Re: SSL maximum message size?

On 31/03/16 22:48, Steve Huston wrote:
> I haven't tried this, but the documentation suggests you can set it:
> http://qpid.apache.org/releases/qpid-0.32/messaging-api/cpp/api/classqpid_1_1messaging_1_1Connection.html#aed260d368e7a61444bd20536dd8ee0a8

Specifically set the 'max_frame_size' connection option. If you then 
send a message larger than the maximum frame size, it will be 
automatically fragmented by the client library and sent as multiple 
frames. The broker will then re-assemble (though it may also fragment 
based on the max-frame-size of the receiver).


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org


Re: SSL maximum message size?

Posted by "RatTac@web.de" <Ra...@web.de>.
Meanwhile I got it working:

Solution was: 
1.) No need to modify the client c++ api
2.) Don't set max-frame-size in the client (i.e. in connection options)
3.) Modify the java broker to have a max-frame-size of 0x3FFF instead of
0XFFFF
in org/apache/qpid/server/protocol/v0_10/ServerConnectionDelegate.java

Strangely, if I set a max-frame-size:16384 in the connection parameters of
the client, it hangs if sending larger messages than this. If I remove
max-frame-size parameter from the connection option everything works fine. 



--
View this message in context: http://qpid.2158936.n2.nabble.com/SSL-maximum-message-size-tp7641114p7641502.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org


Re: SSL maximum message size?

Posted by "RatTac@web.de" <Ra...@web.de>.
True, for the trace I have left the maxFrameSize to its default
value(appearantly 64).
After this I tested with other frame size options in the connection
(max-frame-size:16384 or 8192)
I attached a new trace with the 16K setting, the effect is the same (endless
loop)
Trace16K.txt <http://qpid.2158936.n2.nabble.com/file/n7641177/Trace16K.txt>  

These two lines look suspicious to me
2016-04-01 13:51:35 [Network] trace RECV
[[192.168.21.102:1084-qpid.server.com:5672]]: Frame[BEbe; channel=0;
{ConnectionTuneBody: channel-max=256; max-frame-size=65535; heartbeat-min=0;
heartbeat-max=30; }]
2016-04-01 13:51:35 [Network] trace SENT
[[192.168.21.102:1084-qpid.server.com:5672]]: Frame[BEbe; channel=0;
{ConnectionTuneOkBody: channel-max=256; max-frame-size=16384; heartbeat=30;
}]
Because the max frame size seems to be 16K and 64K?
Do I need to tune this also in the broker?
However the problem occurs when sending to the broker...



--
View this message in context: http://qpid.2158936.n2.nabble.com/SSL-maximum-message-size-tp7641114p7641177.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org


Re: SSL maximum message size?

Posted by Gordon Sim <gs...@redhat.com>.
On 01/04/16 11:05, RatTac@web.de wrote:
> I also tried with max-frame-size 16K or 8K but this does not seem to fix the
> problem. I also attached a protocol trace as well as a minimum example to
> reproduce the error. Maybe this is of help to someone.
> I also tried to understand what exactly is happening within qpid but it is
> very hard for me to understand what is the problem in the first place, so
> fixing it will be difficult for me. Anyhow, I think this is a major bug.
> Protocol trace:  Trace.txt
> <http://qpid.2158936.n2.nabble.com/file/n7641163/Trace.txt>

That trace looks like the max-frame-size was not set correctly. You can 
add it to the connection options you pass in to the connection 
constructor in your example below.

> Example for reproducing the problem:  Code.cpp
> <http://qpid.2158936.n2.nabble.com/file/n7641163/Code.cpp>




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org


Re: SSL maximum message size?

Posted by "RatTac@web.de" <Ra...@web.de>.
I also tried with max-frame-size 16K or 8K but this does not seem to fix the
problem. I also attached a protocol trace as well as a minimum example to
reproduce the error. Maybe this is of help to someone.
I also tried to understand what exactly is happening within qpid but it is
very hard for me to understand what is the problem in the first place, so
fixing it will be difficult for me. Anyhow, I think this is a major bug. 
Protocol trace:  Trace.txt
<http://qpid.2158936.n2.nabble.com/file/n7641163/Trace.txt>  
Example for reproducing the problem:  Code.cpp
<http://qpid.2158936.n2.nabble.com/file/n7641163/Code.cpp>  



--
View this message in context: http://qpid.2158936.n2.nabble.com/SSL-maximum-message-size-tp7641114p7641163.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org