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

Server hangs when shutting down #800

Open
lxkurko opened this issue Sep 26, 2016 · 2 comments
Open

Server hangs when shutting down #800

lxkurko opened this issue Sep 26, 2016 · 2 comments

Comments

@lxkurko
Copy link
Contributor

lxkurko commented Sep 26, 2016

After a dedicated server has been online for a long time, it often hangs when it's shut down. It apparently waits for something to happen at the master server. Messages like these are printed to the console (the number of threads may vary):

W: ThreadPool: waiting for 10 threads to finish:
W: thread CHttp: server.openlierox.net/svr_register.php?port=23400&addr=127.0.1.1 is still working
W: thread CHttp: server.openlierox.net/svr_register.php?port=23400&addr=127.0.1.1 is still working
W: thread CHttp: server.openlierox.net/svr_register.php?port=23400&addr=127.0.1.1 is still working
W: thread CHttp: server.openlierox.net/svr_register.php?port=23400&addr=127.0.1.1 is still working
W: thread CHttp: server.openlierox.net/svr_register.php?port=23400&addr=127.0.1.1 is still working
W: thread CHttp: thelobby.altervista.org/server/svr_register.php?port=23400&addr=127.0.1.1 is still working
W: thread CHttp: thelobby.altervista.org/server/svr_register.php?port=23400&addr=127.0.1.1 is still working
W: thread CHttp: server.openlierox.net/svr_register.php?port=23400&addr=127.0.1.1 is still working
W: thread CHttp: server.openlierox.net/svr_register.php?port=23400&addr=127.0.1.1 is still working
W: thread CHttp: server.openlierox.net/svr_register.php?port=23400&addr=127.0.1.1 is still working

@albertz
Copy link
Owner

albertz commented Sep 26, 2016

Yes, it should not hang. Seems that the CHttp code can end up in a hanging state. For how long does it hang?

I'm not sure when I will have time to debug this myself. Feel free to debug it yourself.

@lxkurko
Copy link
Contributor Author

lxkurko commented Sep 26, 2016

It often hangs for a very long time, several minutes at least, but longer than I'm willing to wait anyway. It happens with 0.58 at least. I haven't tested 0.59.

Also, there might be a bug in the master server. I'm not sure if it's related to this. Here's my message which I sent to DC via LXA PMs a while ago:

###############################################################
I just noticed that there seems to be a bug in the master server (openlierox.net/server). I opened this site and saw my dedicated servers in the list even though I shut them down more than 24 hours ago.

Then I went to the master server page and the servers were listed there as well. But not in the TheLobby master server page.

I started OLX and opened the server list. The servers were not listed and when I came back to the master server page, it didn't show them either. So apparently, the master server doesn't update its list unless a client loads the list from it. That master server is not used by most clients so it's possible that no one has used it since yesterday.

There's also a bug of some sort in OLX which occurs on dedicated servers that have been online for a long time. It's related to server registration and it causes OLX to hang when the quit command is issued. I'll post a report when I get back home and get the console output.
###############################################################

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