Sepulchre49 / instant-messenger

An instant messenger application built in Java
0 stars 5 forks source link

Session waitForLogin() spins in an infinite loop on a bad login request. #10

Closed Sepulchre49 closed 2 months ago

Sepulchre49 commented 2 months ago

This occurs I think due to the regex used to parse the username/password in the Session.java class. This needs to be handled better and give feedback to the server that this is the cause of the IOException.

Also, need to change or at least make explicit the username/password requirements. At the very least, the username/password validation should be consistent between Server & Session.

Sepulchre49 commented 2 months ago

Fixed in fa90485