Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

exit thread

 
Andrew Lit
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
i have this simple code

well, i specially turned off server to test and client gets connection refused exception, but it is not getting out of the program and my console window hangs doing nothing.
What is wrong here?
thank you in advance.
 
David Weitzman
Ranch Hand
Posts: 1365
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Run this code:

If you expected that bevhavior than you know what your mistake is. If you didn't, consider what happens when you run a method that doesn't return until it has already returned.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic