Skip to content
This repository has been archived by the owner on Jan 17, 2020. It is now read-only.

ERROR rumqtt::client::connection > Notification send failed. Error = "Full(..)" #166

Open
glennpierce opened this issue Aug 17, 2019 · 3 comments

Comments

@glennpierce
Copy link

I have some simple code that subscribes to two mqtt messages which arrive around every couple of seconds and every 8 seconds publishes. However, every couple of days or so I start getting the error

ERROR rumqtt::client::connection > Notification send failed. Error = "Full(..)"

Does this come from the client or the mqtt server (mosquito) ?
How can I handle this error ?

I am just using the default branch. ie

rumqtt = "*"

Thanks

@tekjar
Copy link

tekjar commented Aug 29, 2019

I'll verify and fix this today. Thanks for the report

baer-devl pushed a commit to baer-devl/rumqtt that referenced this issue Oct 18, 2019
Create an unbounded crossbeam_channel by default. For bounded crossbeam_channel use the 'set_notification_channel_capacity' to a value of choice.
This should fix the issue AtherEnergy#166.
@damody
Copy link

damody commented Oct 19, 2019

I change notification_channel_capacity from mqtt_option is useless.
but I change src to 10000. it's work. wtf?

pub fn run(mqttoptions: MqttOptions) -> Result<UserHandle, ConnectError> {
        let (notification_tx, notification_rx) = crossbeam_channel::bounded(10000);
        let (request_tx, request_rx) = mpsc::channel::<Request>(mqttoptions.request_channel_capacity());
        let (command_tx, command_rx) = mpsc::channel::<Command>(5);

@damody
Copy link

damody commented Oct 19, 2019

my bad notification_channel_capacity it's work.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants