Skip navigation
3339 Views 2 Replies Latest reply: Sep 23, 2009 3:05 PM by Guus der Kinderen RSS
gperrot Bronze 11 posts since
Jul 1, 2008
Currently Being Moderated

Sep 23, 2009 3:26 AM

Crash in AbstractComponent after reconnection

Tinder's AbstractComponent class crashes if it receives a packet after having being reconnected to the server.

Indeed, the executor is shutdown but reused in processPacket (RejectedExecutionException).

A correction is to test if the executor is shutdown in the start command (current code just tests the null pointer).

          if (executor == null || executor.isShutdown()) {
 
               executor = new ThreadPoolExecutor(maxThreadPoolSize,
 
                         maxThreadPoolSize, 60L, TimeUnit.SECONDS,
 
                         new LinkedBlockingQueue<Runnable>(maxQueueSize));
 
          }

Patch attached.

Attachments:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points