giovdellap / IngSoft-Project-2018

Java project for a server-client board game
0 stars 0 forks source link

Disconnections problem #8

Closed giovdellap closed 6 years ago

giovdellap commented 6 years ago

We are having a strange problem on disconnections. If you try to disconnect the third player at first player's turn, the server sees that third player is disconnected and doesn't try to send and receive from him, as planned, and first and second players can play their first turn without problems. When the second player passes, server sees first and second players disconnected, but they are working and sockets seem to be regularly working. We can't understand what is going on... There aren't buffer problems, we had some doubts about a socket.close() but we commented it and we have this problem anyway, after the problem socket is still bound, connected and not closed (client and server side)

giovdellap commented 6 years ago

Problem solved, we found a method returning null not fixed after last refactoring

michele-bertoni commented 6 years ago

Perfect, I was looking at your code right now. I'm glad you found the bug.