Mosquitto & big payloads

Hello Everybody

In my project I need to transfer over MQTT big files (bigger than MAX_MQTT_PAYLOAD). Because of that I split the file to chunks of the size smaller than MAX_MQTT_PAYLOAD and send them over the MQTT and mosquitto as broker to the subscribed client. The problem is that for some reason either all messages are dropped, either two first messages pass and the rest is dropped.

I use standard non-customized mosquitto.conf as by reading the documentation it seems that the defaults do not put limitations to the payload size. I do not use persistence.

I use mosquitto 2.0.18.

Can somebody advise me where the problem may be?

Thank you very much

Robert

Edit1:

I tried to send 11 chunks of ~3’500’000 bytes each, resulted to following log:

1768913397: New connection from 127.0.0.1:55356 on port 1883.
1768913397: New client connected from 127.0.0.1:55356 as 4913e788b0c8439f9b33d87 (p5, c1, k60).
1768913397: No will message specified.
1768913397: Sending CONNACK to 4913e788b0c8439f9b33d87 (0, 0)
1768913397: Client 4913e788b0c8439f9b33d87 disconnected: Success.

Seems all messages have been dropped, the client did not receive anything.

Another trial where one message passed (size 35’000 bytes):

1768913897: New connection from 127.0.0.1:50432 on port 1883.
1768913897: New client connected from 127.0.0.1:50432 as ac13c87ac6c44c20be82ac4 (p5, c1, k60).
1768913897: No will message specified.
1768913897: Sending CONNACK to ac13c87ac6c44c20be82ac4 (0, 0)
1768913897: Received PUBLISH from ac13c87ac6c44c20be82ac4 (d0, q1, r0, m2, 'updater/upload', ... (35000 bytes))
1768913897: Sending PUBLISH to 7d26ea2ceff144578994561 (d0, q1, r0, m1, 'updater/upload', ... (35000 bytes))
1768913897: Sending PUBACK to ac13c87ac6c44c20be82ac4 (m2, rc0)
1768913897: Client ac13c87ac6c44c20be82ac4 closed its connection.
1768913897: Received PUBACK from 7d26ea2ceff144578994561 (Mid: 1, RC:0)

It seems there is also some dependency on the size of the packages sent