Ticket #160 (closed defect: done)

Opened 7 years ago

Last modified 4 years ago

CAD Server should not display error when CAD Client disconnects normally

Reported by: jdalbey Owned by: jdalbey
Priority: Low Milestone: Sep 2019 Training
Component: CAD Client Version:
Severity: Minor Keywords:
Cc:

Description

Currently, Info Messages appear in CAD Server display

CADSimulatorClient.run or .transmitCommand or CADClientConnector.java line 110

Error reading from / writing to Client Socket

that I suspect are from a normal shutdown of a CAD Client. So the normal shutdown needs to be fixed so that it doesn't cause error messages.

Perhaps when client is shutting down it isn't properly notifying ClientConnector?

Also note, "disconnectClient()" is commented out in CADClientConnector.java

Possibly this is a Windows-only problem.

Change History

comment:1 Changed 7 years ago by jdalbey

CADClient.java has a window closing listener at line 212 that closes the socket and does a system.exit. This may need to be enhanced to something that notifies the server that this socket closing is a normal shutdown.

comment:2 Changed 4 years ago by jdalbey

  • Status changed from new to closed
  • Resolution set to done

For now, I just hacked CADClientConnection to disconnect the client if he gets a socketexception. Implemented in r660.

Note: See TracTickets for help on using tickets.