mm201 / pkmn-classic-framework

Pokémon application logic for Generation IV and V, including servers
http://pkmnclassic.net/
Other
228 stars 43 forks source link

Global Terminal Service hangs on startup sometimes #81

Closed mm201 closed 3 years ago

mm201 commented 4 years ago

I can't replicate locally (of course) but it happens in production every time the server restarts. It hangs when the service is automatically started after a reboot but starting it manually seems to work.

lock()s are probably to blame. e.g. in GTServerBase.BeginPolling().

mm201 commented 3 years ago

Relevant stackoverflow post: https://stackoverflow.com/questions/1986292/a-timeout-was-reached-while-waiting-for-the-service-to-connect-error-after-reb

It seems lock()s aren't to blame after all. If they were, the server startup message would be logged but it isn't.

mm201 commented 3 years ago

Targeting .NET 2.0 has sped up the launch time by a huge amount so I'll mark this resolved and reopen if it crashes again.