Skip to content
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

[BUG] Connection lost #25

Open
GlitchApotamus opened this issue Feb 6, 2024 · 7 comments
Open

[BUG] Connection lost #25

GlitchApotamus opened this issue Feb 6, 2024 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@GlitchApotamus
Copy link

GlitchApotamus commented Feb 6, 2024

# System Information

OS: Windows
Version: 3.3.7
Shell: Command Prompt withing Windows Terminal (Windows 11)

# Bug Description

I can connect to my server and run a command, then when I run a command again, I get disconnected with process exit code 1.

command:  save
error: [FATAL]   Socket Error:  Connection Lost!
        Function Name:         net::recv_packet()
        Socket Error Code:     0
        Socket Error Message:  The operation completed successfully.


[process exited with code 1 (0x00000001)]

# Reproduction Steps

Connect to server.
Send command.
Wait 10 seconds.
Run command that fails out with error above.

@GlitchApotamus GlitchApotamus added the bug Something isn't working label Feb 6, 2024
@GlitchApotamus GlitchApotamus reopened this Feb 6, 2024
@radj307
Copy link
Owner

radj307 commented Feb 8, 2024

This is definitely a bug; I'm not sure what could be the cause, however.

v4 will include a log (#18) that should help in diagnosing this issue.

@radj307
Copy link
Owner

radj307 commented Mar 3, 2024

Please try v4.0.0-pr1 and let me know if the problem is resolved.

@radj307 radj307 changed the title [BUG] … process exiting [BUG] Connection lost Mar 3, 2024
@GlitchApotamus
Copy link
Author

Please try v4.0.0-pr1 and let me know if the problem is resolved.

I will check this in due time. It'll be about a day for me to run some tests.

@GlitchApotamus
Copy link
Author

@radj307 I've ran some test with pr1 and got a error log for you. Hopefully it helps.

Authentication Successful.
Use <Ctrl + C> or type "exit" to quit.
RCON@server> save
[no response]
RCON@server> save
[FATAL]   Failed to read packet header due to error: "End of file [asio.misc:2]"! Flushing the buffer.

@radj307
Copy link
Owner

radj307 commented Mar 3, 2024

The End of file error occurs when the socket connection has been closed.

What game is this? Some games (Palworld is one recent example) implement RCON servers with fairly short inactivity timeouts that may cause something like this.
Does the save command usually show a response? [no response] is a misnomer; it's shown when the server's response is blank (which is another thing that should be fixed).

@GlitchApotamus
Copy link
Author

GlitchApotamus commented Mar 3, 2024

You guessed it. Palworld. And Save is indeed supposed to respond with Save Complete.

@EpicLPer
Copy link

Yeah I was wondering the same with Palworld. You can only idle for roughly 10 seconds (at least it feels so) before the connection gets closed.
Maybe instead of just hard-cutting the connection ARRCON should have a setting that it tries to reconnect automatically when a command is issued and print that to the console. Or, if that would potentially break scripts, make it a command line flag (something like "ARRCON /autoreconnect").

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants