Server half crashes when incoming connection (randomly)
#7

Quote:
Originally Posted by denNorske
Посмотреть сообщение
I wouldn't have gone this way and post here when the same thing happens every time.

Incoming connection and it freezes.
This happened 99/100 times
I'm just saying that there is a possibility the issue is created from the last player who left (I've seen this before) which is causing the server to hang when the next person joins and maybe consumes the same ID where the problem began, maybe something hasn't finished executing?, infinite loop?

I see in the screenshot there.. that someone left the server about 20 seconds before this happened an they were on ID:3, then someone new joined and I guess would've consumed ID:3. So my best advice to you is to go through your OnPlayerDisconnect and check that and the functions that are called from there for problems.

What OS does your server use?, Does the server ever fully crash?, if so whats the exception address?, do players get hourglass icons when this occurs?

Remember your server is single threaded so it can only process 1 thing at any 1 time, if it's already processing something.. other things called to be processed will enter a queue and have to wait until it's completed.. so if for some reason that 1 thing doesn't complete then nothing else can and the queue gets bigger until it's overwhelmed and server hangs (this is my understanding of it, someone correct me if I'm wrong).
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)