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

Responses are empty after 2nd command send #11

Open
Pelayori opened this issue Jan 29, 2024 · 3 comments
Open

Responses are empty after 2nd command send #11

Pelayori opened this issue Jan 29, 2024 · 3 comments

Comments

@Pelayori
Copy link

Pelayori commented Jan 29, 2024

Windows app.
After using send_command_sync with a simple command "listplayers" in ARK, the response comes empty, crashing the app.

The code crashes at client.cpp, line 158 (packet_response.data is empty)

rconpp::response rconpp::rcon_client::receive_information(int32_t id, rconpp::data_type type) {
	// Whilst this loop is better than a while loop,
	// it should really just keep going for a certain amount of seconds.
	for (int i = 0; i < 500; i++) {
		packet packet_response = read_packet();

		int packet_type = bit32_to_int(packet_response.data);

I'm using the general_improvements branch.

@Pelayori
Copy link
Author

Attempting connection to RCON server...
Connected successfully! Sending login data...
Sent login data.
Did not receive a packet in time. Did the server send a response?
Error code: 10060

@Jaskowicz1
Copy link
Owner

Jaskowicz1 commented Jan 30, 2024

Hi there,

I believe this might be something I fixed and forgot to push, which would explain why I didn't merge that branch yet 😅

I'll have a look soon (in a few hours or so) as I'm a bit busy at this current moment, but I'll get back to you soon!

@Jaskowicz1
Copy link
Owner

back to you soon!

I may have gotten very busy 😭

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants