Mirage Source
Global Problem? or just me? - Printable Version

+- Mirage Source (https://mirage-engine.uk/forums)
+-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61)
+--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18)
+---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17)
+---- Thread: Global Problem? or just me? (/showthread.php?tid=2212)



Global Problem? or just me? - William - 01-10-2008

I notice something when I start my server. Each time I start it now, I get like 1-2 connections right away. It's probably from someone's client being open on their computer. And sure that's fine that it notices the server is online. But heck, it seems like a client connects to my server like 3 times, taking up 3 slots (indexes). Now if I login when i opened the server, these 3 indexes are taken. But nobody is online, so I automaticly get Index 4. I just want to know if somebody has noticed this problem before?


Re: Global Problem? or just me? - Anthony - 01-10-2008

It's probably your problem. I use a similar system for checking if the server is online in Merrimint as you do and it doesn't do this. Perhaps your not terminating connections properly?


Re: Global Problem? or just me? - William - 01-10-2008

Thats kinda the thing. I see 3 connections appearing from the same ip, but only 1 is terminated.


Re: Global Problem? or just me? - William - 01-10-2008

DFA Wrote:sounds like a nasty problem
It is a nasty problem, it's not affecting anything as far as I can see. But my server stops accepting connections after a couple of days up with players online. It's something I for sure need to fix. But I might need external help for this. And it's hard to figure out since I have byte arrays, iocp, packet buffer+nagling turned of, highindex and all kinds of things that can be affecting this.


Re: Global Problem? or just me? - Matt - 01-10-2008

William Wrote:
DFA Wrote:sounds like a nasty problem
It is a nasty problem, it's not affecting anything as far as I can see. But my server stops accepting connections after a couple of days up with players online. It's something I for sure need to fix. But I might need external help for this. And it's hard to figure out since I have byte arrays, iocp, packet buffer+nagling turned of, highindex and all kinds of things that can be affecting this.

Shouldn't you start with how the server accepts connections? Or maybe your online check is causing it to send more than one connection?


Re: Global Problem? or just me? - William - 01-10-2008

SInce I disabled the nagling I had to add a new packet buffer, and I don't think thats whats causing it either. And same for indexes, but all of it has to do with the indexes so I just mentioned it.

I've already checked the receiving of connections and I can't see anything wrong with it.

Do you mind explaining the function behing anti hammering?