Open ThaUnknown opened 2 years ago
Is this happening continuously or sporadically? I've noticed occasionally cloudflare throws errors about a connection loss but haven't investigated. (The client code should obviously handle this better.)
If it's continuous, please try deploying the worker yourself to see if you can reproduce and tail the log to get the underlying bug. Thanks!
continuously by far
Can you paste a dump of the payload going to the server or a CURL to repro? (Right click in the network tab and copy as curl)
payload:
{"r":"77dc3677df83be5f","k":"aR6mDaWWriOXvezZM1nRJ8wfIWE","d":["C8NprUJbq26mEvHaCdmwO+HqMGU","d8a4cc5b7b1732dd",false,"HpVqtw9iAzantbZBE7BZn+zjJerYXHlor0PFOqKEOds=",1659709213060,["IP"]],"t":1659709318894,"x":120000,"p":[]}
this could be lightly related to #14
causes:
at: https://github.com/gfodor/p2pcf/blob/3b3988592a60e3f1e9ce59fc2cf866d4c26829ed/src/p2pcf.js#L356