Coder Social home page Coder Social logo

Comments (7)

hawkerm avatar hawkerm commented on May 25, 2024

Haven't seen this running from VS or from the EXE. Maybe an issue running directly from python interpreter on command-line?

from spacebattlearena.

hawkerm avatar hawkerm commented on May 25, 2024

This this has to do with the timer used by Hungry Hungry Baubles and Bauble Hunt. Will have to investigate more...

from spacebattlearena.

hawkerm avatar hawkerm commented on May 25, 2024

Think that was one issue, seems to work in the default case now, but network threads still hanging:

Error in atexit._run_exitfuncs:
Traceback (most recent call last):
File "atexit.pyo", line 24, in _run_exitfuncs
File "Server\MWNL2.pyo", line 202, in __close
File "Server\MWNL2.pyo", line 521, in close
KeyboardInterrupt
Error in sys.exitfunc:
Traceback (most recent call last):
File "atexit.pyo", line 24, in _run_exitfuncs
File "Server\MWNL2.pyo", line 202, in __close
File "Server\MWNL2.pyo", line 521, in close
KeyboardInterrupt

from spacebattlearena.

hawkerm avatar hawkerm commented on May 25, 2024

Looks like we're certainly getting stuck there on the thread, but if we try and forcibly flag the connection ending, we won't always send out our disconnect message to the clients to tell them to terminate... going to need to investigate more on this.

from spacebattlearena.

hawkerm avatar hawkerm commented on May 25, 2024

As part of #68, I started writing some more infrastructure for testing networked clients and just trying to understand this space better. It certainly seems like our server is getting stuck when disconnecting.

In fact, I imagine that we're keeping every thread we open hung somewhere and that may be one main performance issue we see when start the year and students are continually disconnecting and connecting.

I've never given it a high priority, but it certainly is climbing it's way up.

from spacebattlearena.

hawkerm avatar hawkerm commented on May 25, 2024

Looks like I've solved an issue with leaving some threads behind when a client disconnects gracefully (was getting stuck in the command wait loop in the sever).

However, still might be an issue with closing all the connections when the server tries to shutdown. Getting better though.

Gave all the threads names so it's a bit easier to diagnose.

from spacebattlearena.

jpverhaeghe avatar jpverhaeghe commented on May 25, 2024

Where should I look for updates to the JAR and Server files for Java 7? Github?

Jim Verhaeghe

Computer Science Teacher

Ballard High School


From: Michael A. Hawker [[email protected]]
Sent: Tuesday, May 19, 2015 11:20 AM
To: Mikeware/SpaceBattleArena
Subject: Re: [SpaceBattleArena] Server Doesn't Always Terminate on Exit (#2)

Looks like I've solved an issue with leaving some threads behind when a client disconnects gracefully (was getting stuck in the command wait loop in the sever).

However, still might be an issue with closing all the connections when the server tries to shutdown. Getting better though.

Gave all the threads names so it's a bit easier to diagnose.


Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-103622195.

from spacebattlearena.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.