-
Notifications
You must be signed in to change notification settings - Fork 131
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
RCON closes with error, no error stack #262
Comments
Line 172 in dc2bc1d
Is this ternary backwards? Close() with out data will result in the false case; leading to "with an Error" |
Yeah, that's backwards. I checked the node documentation to rule out, that the parameter was poorly named.
|
Yeah, thought so. One thing I noticed, is with squadjs RCON timeout values, if we get blocked or broken in RCON (see #200 ) eventually squad will force close the socket; this is why I was wondering about us missing an "end" listener. With the fixes in #267 (which is still missing the above listener!) we shouldn't ever timeout due to the 30 second polling loops we have. I can remember helping someone else with an RCON tool and they had a similar issue with RCON closing if they didn't send a command for multiple minutes. |
Hi, I just want to start that I don't have technical knowledge about this stuff. I am currently experiencing this issue since February 20, 2022 UTC+8, I'm just sharing the date since that day and the day before I haven't changed anything in the settings nor installed any new plugins. It just began showing up on logs on that day. What I see in the logs are these lines, and keeps happening non-stop:
In our Squad's logs, these shows too:
What I tried so far:
I hope someone can help enlighten me with the issue. EDIT: As I was typing this, the issue went away. Feb 25, 2023 UTC+8 |
Description of Issue
Every now and then RCON will close with an error, but without an error stack log line,
From here:
SquadJS/core/rcon.js
Line 180 in dc2bc1d
I would expect to see Logger.verbose('RCON', 1,
Socket had error:
, err);Errors or Screenshots of Issue
Squad Information
If potentially relevant, please provide regarding the state of the Squad server at the time of error, e.g. the current layer.
System Information
I believe this may be due to us missing an 'end' event from the TCP socket, where the squad server has closed its side for whatever reason; though I'm still confused as to why we never see the error surface.
I had noticed this in previous versions of squadjs, but generally when our server had died off in the night.
https://nodejs.org/api/net.html#event-end
SquadJS/core/rcon.js
Line 35 in dc2bc1d
The text was updated successfully, but these errors were encountered: