Closed TheRemote closed 2 years ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Updated |
---|---|---|---|
platypus | ✅ Ready (Inspect) | Visit Preview | May 8, 2022 at 5:57AM (UTC) |
Thanks for your excellent work! Looks good to me.
Hello again!
Everything has been working great with my several Platypus servers except I'm occasionally getting an exception:
Interestingly this has only ever occurred on my server that serves webcams. My other servers that serve other types of devices have never got this crash. The webcam Platypus server can't run for more than about 24-36 hours before this happens.
It seems like the termite client is sending an empty body but is able to pass this check:
if msg.Type == message.CLIENT_INFO {
This does not happen every time on this platform and there's probably an average of 20 or so of these connected at once with the exception occurring every 24-36 hours. It may only be one bad/corrupted client that does this somewhere in the pool but it takes down the entire Platypus server when it happens.
I ended up adding a simple check like this:
This seems to be rare and platform dependent somehow but I figured I'd submit it. Thank you!