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

Simultaneous log events are not written to log file straight away #1741

Closed
tt92 opened this issue Jul 8, 2020 · 1 comment
Closed

Simultaneous log events are not written to log file straight away #1741

tt92 opened this issue Jul 8, 2020 · 1 comment
Milestone

Comments

@tt92
Copy link

tt92 commented Jul 8, 2020

Hi,

I have enabled log_dest file ... in my mosquitto.conf.

Eventually, everything is logged as expected.
But when there are multiple messages with the same timestamp, only the first message is written to the log file straight away.
All other messages are kind of handed in later when the next log event occurs!

Here's a short example:

First, I connected a client to my broker:

...
1594215148: New connection from x.x.x.x on port 1883.

Then I waited about 15 s. The log file was unchanged.

Then I disconnected the client again and suddenly, I see three more messages with an old timestamp in my log:

...
1594215148: New connection from x.x.x.x on port 1883.
1594215148: New client connected from x.x.x.x as aaa (p2, c1, k60, u'roger').
1594215148: No will message specified.
1594215148: Sending CONNACK to aaa (0, 0)
1594215204: Received DISCONNECT from aaa

I have the same behaviour on both a win10 and a linux system.

I'm sorry, if I have overlooked an existing issue but I couldn't find anything describing that issue so far.

Cheers,

Tobias

@ralight
Copy link
Contributor

ralight commented Jul 15, 2020

This should now be fixed in the fixes branch, thanks for the report.

@ralight ralight added this to the 1.6.11 milestone Jul 15, 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