Closed TroyKomodo closed 7 months ago
Hey, thanks for filling in the issue.
You can increase the max payload size (though values above few megabytes are not advised). It's part of the server config.
We will add a check for publish payload size. I need to think about it, as it can change between reconnects and I would prefer to avoid any locks in publish
.
Why not just use some sort of atomic value then? @Jarema
We're working on that. Atomic value is an easy solution to implement, but it means reading that atomic value on every single publish, which I don't like.
This has been fixed in https://github.com/nats-io/nats.rs/pull/1211 and is already released.
Currently If you try upload blobs bigger than 1MB you do not get an error and sometimes the ack just never is received.
There is a tracing error emitted
Which shows a general failure
Followed by
Any NATs operations that were issued would just silently fail and timeout upon reconnect.
Nats server logs show
So I assume that what I thought was a <1MB file was actually bigger so I should use object store but perhaps returning an error or logging a warning when you actually invoke the put command.