-
-
Notifications
You must be signed in to change notification settings - Fork 172
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
Buffer is full, dropping message in #74
Comments
After a day or so, the bridge started to work normally again and the warning wasn't posted again in my log files. I think an automated restart of the bridge has fixed my issue, but I'm not completely sure, since restarting it manually hasn't made any difference. |
I had the same issue, but rebooting the bridge was enough. I'm wondering what is the cause here. The bridge being unable to talk to the HS? |
hi. have the same problem with "buffer is full" after 1~2 days as it seems. restarts works |
I can confirm that. I encountered the error once more and by killing the process and starting it again the bridge starts syncing all chats again. |
Can confirm too, it seems that when this condition occurs, I get buffer full warning somewhat every time I should get incoming message. At the logs I see connection timeouts etc similars happening at timestamps after buffer full thing is going on, but nothing helps but restart of bridge-service. |
Based on a quick look it seems that there are some systematic problems in the code structure. E.g. I would be happy to help with any effort to rewrite the code to use less mutexes. |
The mutex isn't for locking the write on a chan, it's locking the processing of incoming messages. That locking is needed so that incoming messages wouldn't be handled while the bridge is backfilling after connecting, since handling those newer messages first would prevent backfilling. |
This shouldn't be a problem for most users anymore. Some people with very big accounts might need to adjust the buffer config, but the defaults should be fine for most users. I also switched the |
At the moment I'm not able to receive any messages with the bridge but sending one isn't a problem at all.
The error message i found inside the log file was:
[Jun 19, 2019 23:25:15] [User/***************/WARN] Buffer is full, dropping message in **************@s.whatsapp.net
I tried reconnecting, creating a new web whatsapp session and also restarting the whole bridge but I'm still getting the same error message.
The text was updated successfully, but these errors were encountered: