-
-
Notifications
You must be signed in to change notification settings - Fork 132
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
[Bug] Sometimes pueued does not respond to the pueue client #541
Comments
Phew, that could be anything. This will need somebody with a windows machine to look into this issue :) It would be great if anybody that also runs into this issue could take a look! |
I printed some log when sending and receiving bytes. In my case the server sent 170334 bytes but the client received only 161280 bytes, the tail was missing for some strange reasons, especially when the connection was a localhost TCP so there should not have been any network stability problems. I changed the PACKET_SIZE from 1280 to 64K and the problem seemed to have disappeared for now, but I am not sure if this is a proper fix. |
This is odd. I didn't expect this to be a networking issue, let alone an MTU issue. Though maybe that's a red herring and the issue just doesn't appear as there're less frames that're sent. Using large frames will lead to issues in most networks and with payloads that're bigger than 64k. We had problems with those in the past, which is why a very conservative MTU of 1280 has been chosen. It looks like some packets are lost, but since you're using TCP that really shouldn't be a problem... I tried to reproduce your problem and connected my local client to my server via TCP (via a wireguard transport layer) and it worked just fine. This makes it tricky for me to debug though, as I really cannot do any analysis as long as I cannot reproduce the issue :< |
One more question. What exactly do you mean by "especially that |
Ping @Shihira |
Closed due to unresponsiveness |
Sorry for my slow reply, because pueue has been working for now after adjusting the packet size. This means Could it be an option to expose the packet size so that users can adjust it to fit different system environments? |
A bigger packet size shouldn't resolve any issues. If any, it should introduce new issues as lots of infrastructure doesn't handle it. This is most definitely a bug and needs to be fixed. Thanks for the explanation, that indeed makes sense. I'll take another look at the net code for a bit in the coming days. |
My behavior is exactly the same as that described by @Shihira. |
So, if anybody is interested in debugging this for a bit, could you take a look at In there are the I would start with adding some print meessages with general info about the message to be sent (including chunk count etc) and then print each individual packet. |
I have been using Pueue for some time now, adding tasks and tracking their status through some custom scripts. From my experience, if there are too many uncleared tasks in Pueue (regardless of Group and Status, and I add quite long labels to each task), once it accumulates to several dozen tasks, my I am using Windows 11 (22635.4145) and Pueue 3.4.1. I hope this response is not too late and can still be helpful. I like Pueue so much. |
It's most certainly not too late. It's just that this is a windows specific bug and somebody that uses Windows needs to go ahead and debug this behavior :D The same network logic works perfectly fine for both Mac and Linux, so there's some Windows specific network logic that's causing problems. Also it seems to work just fine for many other windows users out there, so I assume it's a user environment specific issue. As I only use Linux myself, I won't try to fix this 🙂. |
Describe the bug
Sometimes pueued does not respond to the
pueue status
. That is to say the pueue client hangs forever waiting for the daemon. Commands likepueue add
,pueue clean
continues to work, especially thatpueue clean
can sometimes get things recovered. I guess this was because the message from the daemon were too long or be truncated?Steps to reproduce
No 100% reproducible, usually happens when several tasks were added in the same time.
Debug logs (if relevant)
Although the server had sended the message, the client never seemed to have recieved it.
Operating system
Windows 10
Pueue version
v3.4.0
Additional context
No response
The text was updated successfully, but these errors were encountered: