-
Notifications
You must be signed in to change notification settings - Fork 8
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
Error: write ECONNRESET #17
Comments
Hello @edgarpochtel. Seems your host with server query interface is unreachable. |
Hey. Yes, I have. See:
|
|
Hi! It's the same network and the ip (local too) is on the whitelist. |
@edgarpochtel you can connect 200 Server Query users per one TeamSpeak 3 instance. |
Ok. Good to know. Thank you. I use it only 3 times. |
Which version of the package are you running? And if it's a newer one, are you using ssh? |
Im running version 2.1.1. I just upgraded the version to 3.0.0 an will test it. I'm not using SSH. Thank you so far for your help. |
@schroffl ssh is slower (difference is visisble from 200 commands / second ), but more safety |
No changes after upgrading on 3.0.0. But it seems that it need more time to crash. |
@edgarpochtel I've upgraded yesterday from 2.? and all is ok. Some fixes in class but all is ok. |
What happens if you execute the following command? As far as I know it should work on Windows, Linux and MacOS: telnet 127.0.0.1 10011 |
Huh, that is weird. Could you please try this piece of code, which is basically the one you sent, but with a few things left out: var ts = new tsquery(ts_connection.tsip, ts_connection.ts_query_port);
ts.send('login', ts_connection.ts_query_admin, ts_connection.ts_query_password)
.then(() => ts.send('use', 1))
.then(() => console.log('Connected!'))
.catch(err => console.error('[TS-Query] Error:', err)); |
Actually I added
afterwards the nodejs application crashed. But I will try it with the 3.0.0 version and will provide new information tomorrow. |
Hello again! I removed the three lines from my last post. |
Edit: I just noticed that this post Huh, I will just keep thinking and hopefully make out what is going on. Though if you want to, we can still try my suggestion with the fix (which might not even be the fix). Original TextI could imagine that the deviation from the successive I will aim to publish a potential fix in the next days. [1] I hope I did the math correctly, here is the formula I used. Also keep in mind, that // d ~ Time between keepalives in minutes (Default is 5)
// x ~ Our approximated time shift in seconds (in the case above: 0.005)
// t ~ Number of days
24 * 60 / d * x * t |
I have another idea: Did you change the query_timeout option of your server? query.keepalive.setDuration(240); Maybe the keepalive misses the countdown of the server by a few seconds (or even milliseconds). When you set it to 4 minutes there is more than enough margin to not have that happen. And if this does the trick, I'm going to lower the default keepalive interval. |
I don't thinkt that I changed the query_timeout option. I actually don't know how. |
It's now a week and the script is running without crashes. So, it could be, that your solution worked for me. |
Alright, I'm going to adjust the default timeout then. |
The fix from 294527e is published in Version 3.0.1 |
Hello!
Nice work so far.
Unfortunately I get the following error after a while:
The text was updated successfully, but these errors were encountered: