Open Shihira opened 3 weeks ago
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 pueue clean
can sometimes get things recovered."?
Ping @Shihira
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