Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not all published data written using unix sockets on slow clients #1977

Closed
marchaesen opened this issue Dec 23, 2020 · 1 comment
Closed
Milestone

Comments

@marchaesen
Copy link

I am using mosquitto compiled for the IMx8m arm processor from NXP.
Version used is the current fixes branch (9d3732a).
Mosquitto is listening on a unix socket.
The client is a client which reads data from mosquitto at a slow rate.
When publishing a topic with a large payload (300k), not all data is received on the client.
The reason for this is that the packet__write returns because it gets an errno EAGAIN from the net__write function and after this the packet_write function is not called again.

I can fix the problem by applying attached patch file.
patch.txt

Is this patch the correct way of solving the issue or should it be fixed in another way?

@ralight
Copy link
Contributor

ralight commented Dec 27, 2020

I've pushed a fix there, but it is for the broker rather than the client, I'll take a look at the client as well. Thanks for reporting!

@ralight ralight added this to the 2.0.5 milestone Dec 27, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 11, 2022
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

2 participants