marceldev89 / BattleNET

BattlEye Protocol Library and Client
GNU Lesser General Public License v3.0
76 stars 44 forks source link

Some users are unable to connect with the new update #4

Closed DomiStyle closed 11 years ago

DomiStyle commented 12 years ago

Hello, I got a few reports that some people are unable to connect. Since I didn't make any change to the code that could affect this I would believe BattleNET is causing it. Do you have any idea why this could happen? Here is one of those reports: http://dayzmod.com/forum/index.php?/topic/68933-dart-a-lightweight-dayz-rcon-tool-v05-11092012/page__st__240#entry852464 Was thinking about a bad internet connection but maybe you know what to do.

marceldev89 commented 12 years ago

That's probably due to the fixes for your previous issue. It's (I think) caused by a heavy loaded server where it would take longer for the server to respond then 1 second (for the initial connection). If you feel like testing / debugging it, it's line 242 in src/BattleNET/BattlEyeClient.cs. You can send your affected users a few dll's with different values. Let's say 1000, 2000, 3000, 4000, 5000 (those are milliseconds). And let me know what works best, I'll implement it in the main code then.

DomiStyle commented 11 years ago

Got reports that turning up the timeout didn't work.

marceldev89 commented 11 years ago

Are they able to connect with the official RCon tool (BERCon)?

DomiStyle commented 11 years ago

Got a few reports with yes and no. I would guess turning up the timout will never do any damage though. 3-5 seconds should do. Will investigate what is wrong with the few people saying yes.

DomiStyle commented 11 years ago

Got a screenshot showing BERCon working while DaRT fails to connect. http://i.imgur.com/3uRUA.jpg No idea what's causing it though.

marceldev89 commented 11 years ago

Hmm I'm not sure. If setting the timeout higher doesn't fix it then I'm out of ideas.

DomiStyle commented 11 years ago

Okay, a timeout of 5 seconds worked. He forgot to put the new dll in.