Author Topic: [fixed svn] 3.6.0.3: UPnP cfg too long, causing failure to publish games  (Read 965 times)

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
I recently changed ISPs and they also sold me a new router of a brand (AVM) which is generally considered to be one of the better SOHO router manufacturers over here.

Unfortunately, this device takes a little too long to setup the firewall rules via UPnP (when requested by MG), so when I start hosting a MegaGlest game the first attempt to publish the game fails with the error message about failure to connect to my computer and incorrect firewall setup. When I just switch on the option to publish to the masterserver again, it succeeds. I assume that's because at this point the firewall rules are already setup so the inbound test connection works well  and the new UPnP request to set up these rules is not problematic since it doesn't effectively change anything.

To sum it up, the client side (or is this server side - I don't remember how it works exactly...) timeout for the check whether publishing to the master server worked out should be extended by ~5 seconds if UPnP configration is being used (or in general).
« Last Edit: 3 March 2012, 08:29:46 by softcoder »
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
I beleive you could try adding this key to glestuser.ini:

DEFAULT_HTTP_TIMEOUT=15

(default is 10 seconds)

See if that helps.

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Hmm, this doesn't really help always (it does help sometimes). The issue seems to be that the masterserver connects a little too fast and by this time the UPnP rules are not setup, causing the connection to be rejected by my router, and causing the game to not get published. So it seems I actually need to increase both the client and masterserver delay. The masterserver had a delay of 3 seconds in the script which adds new servers, I've just changed this to 8. This should fix issues for may people who had trouble publishing their games so far.

A better way (shorter script runtime = lesser load) to do this on the masterserver would be to not have a long delay initially but to recheck later if the first (quick) check fails (due to TCP NACK or timeout).
« Last Edit: 2 February 2012, 20:32:40 by tomreyn »
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
- svn now tries numerous attempts to contact the masterserver (for a total of 10 seconds) before assuming the error received is real.

 

anything